Skip to content

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
mexikoedi committed Sep 7, 2024
1 parent 616bb4b commit 5ae8f3b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ <h2 class="p-3">About</h2>
</section>

<footer class="text-md-center py-4" aria-label="Footer with copyright information">
<p>&copy; 2020-<script async>document.write(new Date().getFullYear())</script> mexikoedi. All rights reserved.</p>
<p>&copy; 2020-<span id="currentYear"></span> mexikoedi. All rights reserved.</p>
</footer>

<!-- bootstrap import and scrolling listener for navbar -->
Expand All @@ -368,5 +368,10 @@ <h2 class="p-3">About</h2>
}, { passive: true });
});
</script>
<script>
document.addEventListener('DOMContentLoaded', function () {
document.getElementById('currentYear').textContent = new Date().getFullYear();
});
</script>
</body>
</html>

0 comments on commit 5ae8f3b

Please sign in to comment.