ortal1602 commited on
Commit
0a7c158
·
verified ·
1 Parent(s): f92efcb

Update index.html

Browse files
Files changed (1) hide show
  1. 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="text-align: center; padding: 30px; border: 1px solid #ddd; border-radius: 10px; background: #fafafa;">
67
- <p id="highlight-text" style="font-size: 1.2rem; font-style: italic;"></p>
68
- <img id="highlight-image" src="" alt="Highlight figure" style="max-width: 100%; max-height: 400px; margin-top: 20px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.1);">
 
69
  </div>
70
  <div class="text-center mt-3">
71
- <button onclick="prevHighlight()" class="btn btn-outline-primary">← Prev</button>
72
- <button onclick="nextHighlight()" class="btn btn-outline-primary">Next →</button>
73
  </div>
74
  </div>
75
 
@@ -104,8 +105,9 @@
104
  let highlightIndex = 0;
105
 
106
  function showHighlight(index) {
107
- document.getElementById('highlight-text').textContent = highlights[index].text;
108
- document.getElementById('highlight-image').src = highlights[index].image;
 
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() {