Skip to content

Commit 35ef26e

Browse files
Update cv.html
1 parent 7cfb9fa commit 35ef26e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

cv.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,30 @@
4949
console.error("Error fetching PDF file:", error);
5050
});
5151

52-
// Toggle info box visibility
52+
// Get elements
5353
const infoIcon = document.getElementById('info-icon');
5454
const infoBox = document.getElementById('info-box');
5555
const closeInfoBtn = document.getElementById('close-info');
5656

57-
// Ensure info box is hidden initially
58-
infoBox.style.display = 'none';
57+
// Initially hide the info-box
58+
infoBox.style.display = 'none';
5959

60+
// Info icon click event
6061
infoIcon.onclick = function() {
61-
// Toggle display between 'none' and 'block'
62+
console.log('Info icon clicked'); // Debugging line
6263
if (infoBox.style.display === 'none' || infoBox.style.display === '') {
63-
infoBox.style.display = 'block';
64+
infoBox.style.display = 'block';
6465
} else {
6566
infoBox.style.display = 'none';
6667
}
6768
};
6869

70+
// Close info box
6971
closeInfoBtn.onclick = function() {
7072
infoBox.style.display = 'none';
7173
};
7274
};
75+
7376
</script>
7477

7578
<script type="text/x-mathjax-config">
@@ -336,7 +339,7 @@ <h1>Hariprashad Ravikumar</h1>
336339
</nav>
337340

338341
<main>
339-
<div class="download-container">
342+
<div class="download-container">
340343
<p id="cv-date">(Current as of <span id="cv-date-text"></span>) <span id="info-icon" class="info-icon">i</span></p>
341344
<a href="cv/CV_HARI.pdf" class="download-button" target="_blank">Download Full CV</a>
342345
</div>

0 commit comments

Comments
 (0)