|
31 | 31 | } |
32 | 32 | </script> |
33 | 33 | <script> |
34 | | -// Function to update the date based on the last modified date of the PDF file |
35 | 34 | window.onload = function() { |
36 | 35 | const pdfFilePath = 'cv/CV_HARI.pdf'; |
37 | 36 | const dateText = document.getElementById('cv-date-text'); |
|
55 | 54 | const infoBox = document.getElementById('info-box'); |
56 | 55 | const closeInfoBtn = document.getElementById('close-info'); |
57 | 56 |
|
| 57 | + // Ensure info box is hidden initially |
| 58 | + infoBox.style.display = 'none'; |
| 59 | + |
58 | 60 | infoIcon.onclick = function() { |
59 | | - infoBox.style.display = infoBox.style.display === 'block' ? 'none' : 'block'; |
| 61 | + // Toggle display between 'none' and 'block' |
| 62 | + if (infoBox.style.display === 'none' || infoBox.style.display === '') { |
| 63 | + infoBox.style.display = 'block'; |
| 64 | + } else { |
| 65 | + infoBox.style.display = 'none'; |
| 66 | + } |
60 | 67 | }; |
61 | 68 |
|
62 | 69 | closeInfoBtn.onclick = function() { |
@@ -330,17 +337,17 @@ <h1>Hariprashad Ravikumar</h1> |
330 | 337 |
|
331 | 338 | <main> |
332 | 339 | <div class="download-container"> |
333 | | - <p id="cv-date">(Current as of <span id="cv-date-text"></span>) <span id="info-icon" class="info-icon">i</span></p> |
334 | | - <a href="cv/CV_HARI.pdf" class="download-button" target="_blank">Download Full CV</a> |
335 | | - </div> |
336 | | - |
337 | | - <div id="info-box" class="info-box"> |
338 | | - <p><strong>Automated LaTeX CV Build & Deployment</strong></p> |
339 | | - <p>This CV is automatically built and deployed using a GitHub Actions workflow, pulling LaTeX files from Overleaf and compiling them into a PDF with every commit. Find more details about the workflow on my |
340 | | - <a href="https://github.com/Hariprashad-Ravikumar/CV-GitHub-Actions-LaTeX-ci-cd" target="_blank">GitHub Repository</a>. |
341 | | - </p> |
342 | | - <button id="close-info" class="close-info">Close</button> |
343 | | - </div> |
| 340 | + <p id="cv-date">(Current as of <span id="cv-date-text"></span>) <span id="info-icon" class="info-icon">i</span></p> |
| 341 | + <a href="cv/CV_HARI.pdf" class="download-button" target="_blank">Download Full CV</a> |
| 342 | +</div> |
| 343 | + |
| 344 | +<div id="info-box" class="info-box"> |
| 345 | + <p><strong>Automated LaTeX CV Build & Deployment</strong></p> |
| 346 | + <p>This CV is automatically built and deployed using a GitHub Actions workflow, pulling LaTeX files from Overleaf and compiling them into a PDF with every commit. Find more details about the workflow on my |
| 347 | + <a href="https://github.com/Hariprashad-Ravikumar/CV-GitHub-Actions-LaTeX-ci-cd" target="_blank">GitHub Repository</a>. |
| 348 | + </p> |
| 349 | + <button id="close-info" class="close-info">Close</button> |
| 350 | +</div> |
344 | 351 | </main> |
345 | 352 |
|
346 | 353 |
|
|
0 commit comments