FlameF0X commited on
Commit
32a93fb
·
verified ·
1 Parent(s): 1e15167

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +76 -2
index.html CHANGED
@@ -84,10 +84,46 @@
84
  border-radius: 8px;
85
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
86
  }
 
87
  .chart img {
88
  width: 100%;
89
  height: auto;
90
  border-radius: 4px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  }
92
  .chart-caption {
93
  text-align: center;
@@ -180,15 +216,21 @@
180
 
181
  <div class="chart-container">
182
  <div class="chart">
183
- <img src="8d6951f7-dafc-44b4-bd85-c213d2ae77a6.png" alt="Chart showing model accuracy by operation type">
184
  <div class="chart-caption">Figure 1: Accuracy by Operation Type (%)</div>
185
  </div>
186
  <div class="chart">
187
- <img src="e7692aaa-7623-4e6f-b9f2-23ef0531ebe0.png" alt="Chart showing model performance on math problems">
188
  <div class="chart-caption">Figure 2: Correct vs Incorrect Answers (1000 questions each)</div>
189
  </div>
190
  </div>
191
 
 
 
 
 
 
 
192
  <h2>Detailed Accuracy Results</h2>
193
 
194
  <table>
@@ -287,5 +329,37 @@
287
  <p>© 2025 • Created for educational purposes</p>
288
  </div>
289
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
290
  </body>
291
  </html>
 
84
  border-radius: 8px;
85
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
86
  }
87
+ /* Updated image styling for zoom capability */
88
  .chart img {
89
  width: 100%;
90
  height: auto;
91
  border-radius: 4px;
92
+ cursor: zoom-in;
93
+ transition: transform 0.3s ease;
94
+ }
95
+ /* Modal styles for zoomed image */
96
+ .modal {
97
+ display: none;
98
+ position: fixed;
99
+ z-index: 1000;
100
+ left: 0;
101
+ top: 0;
102
+ width: 100%;
103
+ height: 100%;
104
+ overflow: auto;
105
+ background-color: rgba(0,0,0,0.9);
106
+ }
107
+ .modal-content {
108
+ margin: auto;
109
+ display: block;
110
+ max-width: 90%;
111
+ max-height: 90%;
112
+ }
113
+ .close {
114
+ position: absolute;
115
+ top: 15px;
116
+ right: 35px;
117
+ color: #f1f1f1;
118
+ font-size: 40px;
119
+ font-weight: bold;
120
+ transition: 0.3s;
121
+ cursor: pointer;
122
+ }
123
+ .close:hover,
124
+ .close:focus {
125
+ color: #bbb;
126
+ text-decoration: none;
127
  }
128
  .chart-caption {
129
  text-align: center;
 
216
 
217
  <div class="chart-container">
218
  <div class="chart">
219
+ <img src="8d6951f7-dafc-44b4-bd85-c213d2ae77a6.png" alt="Chart showing model accuracy by operation type" class="zoomable">
220
  <div class="chart-caption">Figure 1: Accuracy by Operation Type (%)</div>
221
  </div>
222
  <div class="chart">
223
+ <img src="e7692aaa-7623-4e6f-b9f2-23ef0531ebe0.png" alt="Chart showing model performance on math problems" class="zoomable">
224
  <div class="chart-caption">Figure 2: Correct vs Incorrect Answers (1000 questions each)</div>
225
  </div>
226
  </div>
227
 
228
+ <!-- Modal for image zoom -->
229
+ <div id="imageModal" class="modal">
230
+ <span class="close">&times;</span>
231
+ <img class="modal-content" id="zoomedImage">
232
+ </div>
233
+
234
  <h2>Detailed Accuracy Results</h2>
235
 
236
  <table>
 
329
  <p>© 2025 • Created for educational purposes</p>
330
  </div>
331
  </div>
332
+
333
+ <script>
334
+ // Get the modal
335
+ var modal = document.getElementById("imageModal");
336
+
337
+ // Get the image and insert it inside the modal
338
+ var zoomableImages = document.getElementsByClassName("zoomable");
339
+ var modalImg = document.getElementById("zoomedImage");
340
+
341
+ // Add click event to all zoomable images
342
+ for (var i = 0; i < zoomableImages.length; i++) {
343
+ zoomableImages[i].onclick = function() {
344
+ modal.style.display = "flex";
345
+ modalImg.src = this.src;
346
+ }
347
+ }
348
+
349
+ // Get the <span> element that closes the modal
350
+ var span = document.getElementsByClassName("close")[0];
351
+
352
+ // When the user clicks on <span> (x), close the modal
353
+ span.onclick = function() {
354
+ modal.style.display = "none";
355
+ }
356
+
357
+ // Close the modal when clicking outside the image
358
+ modal.onclick = function(event) {
359
+ if (event.target === modal) {
360
+ modal.style.display = "none";
361
+ }
362
+ }
363
+ </script>
364
  </body>
365
  </html>