DevakiG commited on
Commit
4e46ed4
·
verified ·
1 Parent(s): 40fd4af

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +23 -7
index.html CHANGED
@@ -33,6 +33,14 @@
33
  }
34
  </script>
35
  <style>
 
 
 
 
 
 
 
 
36
  .glass-panel {
37
  border-width: 1px;
38
  backdrop-filter: blur(12px);
@@ -451,12 +459,12 @@
451
  <label class="text-xs font-bold text-slate-300 uppercase mt-1">2. Saliency Heatmap Quality</label>
452
  <div class="flex items-center justify-between bg-slate-800 p-2 px-3 rounded-xl border border-slate-700">
453
  <span class="text-xs text-slate-400">Grad-CAM Accuracy:</span>
454
- <div id="starContainer" class="flex gap-1 text-amber-400 cursor-pointer">
455
- <span onclick="setRating(1)" class="material-symbols-outlined text-[20px]">star</span>
456
- <span onclick="setRating(2)" class="material-symbols-outlined text-[20px]">star</span>
457
- <span onclick="setRating(3)" class="material-symbols-outlined text-[20px]">star</span>
458
- <span onclick="setRating(4)" class="material-symbols-outlined text-[20px]">star</span>
459
- <span onclick="setRating(5)" class="material-symbols-outlined text-[20px]">star</span>
460
  </div>
461
  </div>
462
 
@@ -737,7 +745,15 @@
737
  function setRating(r) {
738
  selectedRating = r;
739
  const stars = document.getElementById('starContainer').children;
740
- for (let i = 0; i < 5; i++) stars[i].innerText = i < r ? 'star' : 'star_border';
 
 
 
 
 
 
 
 
741
  }
742
 
743
  function toggleView(mode) {
 
33
  }
34
  </script>
35
  <style>
36
+ .star-filled {
37
+ font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 24 !important;
38
+ color: #f59e0b !important;
39
+ }
40
+ .star-empty {
41
+ font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24 !important;
42
+ color: #475569 !important;
43
+ }
44
  .glass-panel {
45
  border-width: 1px;
46
  backdrop-filter: blur(12px);
 
459
  <label class="text-xs font-bold text-slate-300 uppercase mt-1">2. Saliency Heatmap Quality</label>
460
  <div class="flex items-center justify-between bg-slate-800 p-2 px-3 rounded-xl border border-slate-700">
461
  <span class="text-xs text-slate-400">Grad-CAM Accuracy:</span>
462
+ <div id="starContainer" class="flex gap-1 cursor-pointer">
463
+ <span onclick="setRating(1)" class="material-symbols-outlined text-[22px] star-filled">star</span>
464
+ <span onclick="setRating(2)" class="material-symbols-outlined text-[22px] star-filled">star</span>
465
+ <span onclick="setRating(3)" class="material-symbols-outlined text-[22px] star-filled">star</span>
466
+ <span onclick="setRating(4)" class="material-symbols-outlined text-[22px] star-filled">star</span>
467
+ <span onclick="setRating(5)" class="material-symbols-outlined text-[22px] star-filled">star</span>
468
  </div>
469
  </div>
470
 
 
745
  function setRating(r) {
746
  selectedRating = r;
747
  const stars = document.getElementById('starContainer').children;
748
+ for (let i = 0; i < 5; i++) {
749
+ if (i < r) {
750
+ stars[i].className = 'material-symbols-outlined text-[22px] star-filled';
751
+ stars[i].innerText = 'star';
752
+ } else {
753
+ stars[i].className = 'material-symbols-outlined text-[22px] star-empty';
754
+ stars[i].innerText = 'star';
755
+ }
756
+ }
757
  }
758
 
759
  function toggleView(mode) {