Update index.html
Browse files- index.html +10 -8
index.html
CHANGED
@@ -61,15 +61,16 @@
|
|
61 |
</div>
|
62 |
|
63 |
<!-- Interactive Highlight Slider -->
|
64 |
-
<div class="container">
|
65 |
<h2>Paper Highlights</h2>
|
66 |
-
<div id="highlight-box" style="
|
67 |
-
<
|
68 |
-
|
|
|
69 |
</div>
|
70 |
<div class="text-center mt-3">
|
71 |
-
<button onclick="prevHighlight()" class="btn btn-outline-primary"
|
72 |
-
<button onclick="nextHighlight()" class="btn btn-outline-primary"
|
73 |
</div>
|
74 |
</div>
|
75 |
|
@@ -104,8 +105,9 @@
|
|
104 |
let highlightIndex = 0;
|
105 |
|
106 |
function showHighlight(index) {
|
107 |
-
|
108 |
-
document.getElementById('highlight-
|
|
|
109 |
}
|
110 |
|
111 |
function prevHighlight() {
|
|
|
61 |
</div>
|
62 |
|
63 |
<!-- Interactive Highlight Slider -->
|
64 |
+
<div class="container" style="max-width: 900px;">
|
65 |
<h2>Paper Highlights</h2>
|
66 |
+
<div id="highlight-box" style="padding: 30px; border: 1px solid #ddd; border-radius: 10px; background: #fafafa;">
|
67 |
+
<img id="highlight-image" src="" alt="Highlight figure"
|
68 |
+
style="max-width: 100%; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); margin-bottom: 20px;">
|
69 |
+
<p id="highlight-text" style="font-size: 1.1rem; text-align: left; font-style: italic;"></p>
|
70 |
</div>
|
71 |
<div class="text-center mt-3">
|
72 |
+
<button onclick="prevHighlight()" class="btn btn-outline-primary">←</button>
|
73 |
+
<button onclick="nextHighlight()" class="btn btn-outline-primary">→</button>
|
74 |
</div>
|
75 |
</div>
|
76 |
|
|
|
105 |
let highlightIndex = 0;
|
106 |
|
107 |
function showHighlight(index) {
|
108 |
+
const highlight = highlights[index];
|
109 |
+
document.getElementById('highlight-text').textContent = highlight.text;
|
110 |
+
document.getElementById('highlight-image').src = highlight.image;
|
111 |
}
|
112 |
|
113 |
function prevHighlight() {
|