Update index.html
Browse files- index.html +21 -22
index.html
CHANGED
@@ -184,13 +184,18 @@
|
|
184 |
</ul>
|
185 |
`,
|
186 |
2: `
|
187 |
-
<h2>
|
188 |
-
<p>
|
189 |
-
<
|
|
|
|
|
|
|
|
|
190 |
`,
|
191 |
3: `
|
192 |
<h2>Day 3</h2>
|
193 |
-
<p>Like the space to
|
|
|
194 |
`,
|
195 |
4: `
|
196 |
<h2>Day 4</h2>
|
@@ -292,26 +297,9 @@
|
|
292 |
calendar.appendChild(card);
|
293 |
}
|
294 |
|
295 |
-
// // Handle card clicks
|
296 |
-
// const cards = document.querySelectorAll('.card');
|
297 |
-
// const currentDate = new Date();
|
298 |
-
// const currentDay = currentDate.getDate();
|
299 |
-
// const isDecember = currentDate.getMonth() === 11;
|
300 |
-
|
301 |
-
// cards.forEach(card => {
|
302 |
-
// const day = parseInt(card.dataset.day);
|
303 |
-
// card.classList.add('active');
|
304 |
-
|
305 |
-
// card.addEventListener('click', () => {
|
306 |
-
// card.classList.add('opened');
|
307 |
-
// modalContent.innerHTML = card.querySelector('.card-content').innerHTML;
|
308 |
-
// modal.style.display = 'flex';
|
309 |
-
// });
|
310 |
-
// });
|
311 |
-
|
312 |
// Handle card clicks
|
313 |
const cards = document.querySelectorAll('.card');
|
314 |
-
const activeDays = [1]; // Add the day numbers you want to highlight
|
315 |
|
316 |
cards.forEach(card => {
|
317 |
const day = parseInt(card.dataset.day);
|
@@ -339,6 +327,17 @@
|
|
339 |
modal.style.display = 'none';
|
340 |
}
|
341 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
</script>
|
343 |
</body>
|
344 |
</html>
|
|
|
184 |
</ul>
|
185 |
`,
|
186 |
2: `
|
187 |
+
<h2>Most liked and downloaded models, from 2022 to today</h2>
|
188 |
+
<p>Explore the community's favourite models, ranging from tasks, likes to downloads, since 2022. What we're seeing: smol models are on the rise.📈👀</p>
|
189 |
+
<p><em style="font-size: 0.8em;">💡Tip: Click the small square icon in the top right corner to access full screen view!</em></p>
|
190 |
+
<div class="responsive-iframe-container">
|
191 |
+
<button onclick="toggleFullscreen(this.nextElementSibling)" style="position: absolute; top: 10px; right: 10px; z-index: 10; padding: 8px; background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 4px; cursor: pointer;">⛶</button>
|
192 |
+
<iframe src="https://aiworld.eu/embed/model/model/treemap" allowfullscreen></iframe>
|
193 |
+
</div>
|
194 |
`,
|
195 |
3: `
|
196 |
<h2>Day 3</h2>
|
197 |
+
<p>Wondering what tomorrow’s visualization will be? Like the space to get notified when we reveal it 🤗</p>
|
198 |
+
<img src="/images/day3-teaser.png" style="width: 100%; margin: 20px 0;">
|
199 |
`,
|
200 |
4: `
|
201 |
<h2>Day 4</h2>
|
|
|
297 |
calendar.appendChild(card);
|
298 |
}
|
299 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
// Handle card clicks
|
301 |
const cards = document.querySelectorAll('.card');
|
302 |
+
const activeDays = [1,2]; // Add the day numbers you want to highlight
|
303 |
|
304 |
cards.forEach(card => {
|
305 |
const day = parseInt(card.dataset.day);
|
|
|
327 |
modal.style.display = 'none';
|
328 |
}
|
329 |
});
|
330 |
+
|
331 |
+
// Add fullscreen function
|
332 |
+
function toggleFullscreen(iframe) {
|
333 |
+
if (iframe.requestFullscreen) {
|
334 |
+
iframe.requestFullscreen();
|
335 |
+
} else if (iframe.webkitRequestFullscreen) { /* Safari */
|
336 |
+
iframe.webkitRequestFullscreen();
|
337 |
+
} else if (iframe.msRequestFullscreen) { /* IE11 */
|
338 |
+
iframe.msRequestFullscreen();
|
339 |
+
}
|
340 |
+
}
|
341 |
</script>
|
342 |
</body>
|
343 |
</html>
|