Skip to content

Commit

Permalink
dynamic year
Browse files Browse the repository at this point in the history
  • Loading branch information
vougioukakis committed Dec 2, 2024
1 parent 4e323f4 commit a56a375
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,12 @@ <h1 id="name-text" style="margin-top: 0px; margin-bottom: 0px; color: #d1ecf8;">

</div>
<div id="mailBox" style="display: none; "><p style="font-size: 14px;">Gmail: vougioukakis99 (at) gmail (dot) com</p></div>

<p style="font-size: 10px;">Nikolaos Vougioukakis 2024</p>
<p style="font-size: 10px; margin-inline: 20%;">Background designed by Freepik, icons by Icons8 and svgrepo, music by <a class="link" href="https://pixabay.com/users/universfield-28281460/?utm_source=link-attribution&utm_medium=referral&utm_campaign=music&utm_content=153275">UNIVERSFIELD</a> from <a class="link" href="https://pixabay.com/sound-effects//?utm_source=link-attribution&utm_medium=referral&utm_campaign=music&utm_content=153275">Pixabay</a>, click sound by <a class="link" href="https://freesound.org/s/269157/">Heshl</a></p>

<div id="footer-info">
<p style="font-size: 10px;">Nikolaos Vougioukakis <p id="curr-year"></p></p>
<p style="font-size: 10px; margin-inline: 20%;">Background designed by Freepik, icons by Icons8 and svgrepo, music by <a class="link" href="https://pixabay.com/users/universfield-28281460/?utm_source=link-attribution&utm_medium=referral&utm_campaign=music&utm_content=153275">UNIVERSFIELD</a> from <a class="link" href="https://pixabay.com/sound-effects//?utm_source=link-attribution&utm_medium=referral&utm_campaign=music&utm_content=153275">Pixabay</a>, click sound by <a class="link" href="https://freesound.org/s/269157/">Heshl</a></p>

</div>
</footer>
</div>

Expand Down
3 changes: 2 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
//todo: add ambient bg sound and sound effects on click
let click_audio = document.getElementById("click-sound");
let muted = 0;

document.getElementById("curr-year").innerHTML = new Date().getFullYear();

function loadContent(contentId) {
const mainContent = document.getElementById("mainContent");

Expand Down

0 comments on commit a56a375

Please sign in to comment.