Skip to content

Commit 7cfb9fa

Browse files
Update cv.html
1 parent cb18518 commit 7cfb9fa

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

cv.html

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
}
3232
</script>
3333
<script>
34-
// Function to update the date based on the last modified date of the PDF file
3534
window.onload = function() {
3635
const pdfFilePath = 'cv/CV_HARI.pdf';
3736
const dateText = document.getElementById('cv-date-text');
@@ -55,8 +54,16 @@
5554
const infoBox = document.getElementById('info-box');
5655
const closeInfoBtn = document.getElementById('close-info');
5756

57+
// Ensure info box is hidden initially
58+
infoBox.style.display = 'none';
59+
5860
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+
}
6067
};
6168

6269
closeInfoBtn.onclick = function() {
@@ -330,17 +337,17 @@ <h1>Hariprashad Ravikumar</h1>
330337

331338
<main>
332339
<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>
344351
</main>
345352

346353

0 commit comments

Comments
 (0)