|
49 | 49 | console.error("Error fetching PDF file:", error); |
50 | 50 | }); |
51 | 51 |
|
52 | | - // Toggle info box visibility |
| 52 | + // Get elements |
53 | 53 | const infoIcon = document.getElementById('info-icon'); |
54 | 54 | const infoBox = document.getElementById('info-box'); |
55 | 55 | const closeInfoBtn = document.getElementById('close-info'); |
56 | 56 |
|
57 | | - // Ensure info box is hidden initially |
58 | | - infoBox.style.display = 'none'; |
| 57 | + // Initially hide the info-box |
| 58 | + infoBox.style.display = 'none'; |
59 | 59 |
|
| 60 | + // Info icon click event |
60 | 61 | infoIcon.onclick = function() { |
61 | | - // Toggle display between 'none' and 'block' |
| 62 | + console.log('Info icon clicked'); // Debugging line |
62 | 63 | if (infoBox.style.display === 'none' || infoBox.style.display === '') { |
63 | | - infoBox.style.display = 'block'; |
| 64 | + infoBox.style.display = 'block'; |
64 | 65 | } else { |
65 | 66 | infoBox.style.display = 'none'; |
66 | 67 | } |
67 | 68 | }; |
68 | 69 |
|
| 70 | + // Close info box |
69 | 71 | closeInfoBtn.onclick = function() { |
70 | 72 | infoBox.style.display = 'none'; |
71 | 73 | }; |
72 | 74 | }; |
| 75 | + |
73 | 76 | </script> |
74 | 77 |
|
75 | 78 | <script type="text/x-mathjax-config"> |
@@ -336,7 +339,7 @@ <h1>Hariprashad Ravikumar</h1> |
336 | 339 | </nav> |
337 | 340 |
|
338 | 341 | <main> |
339 | | - <div class="download-container"> |
| 342 | +<div class="download-container"> |
340 | 343 | <p id="cv-date">(Current as of <span id="cv-date-text"></span>) <span id="info-icon" class="info-icon">i</span></p> |
341 | 344 | <a href="cv/CV_HARI.pdf" class="download-button" target="_blank">Download Full CV</a> |
342 | 345 | </div> |
|
0 commit comments