diff --git a/assets/js/anchor-hash.js b/assets/js/anchor-hash.js index 1127f53..45de6f6 100644 --- a/assets/js/anchor-hash.js +++ b/assets/js/anchor-hash.js @@ -1,4 +1,4 @@ -document.addEventListener("DOMContentLoaded", function() { +window.addEventListener("load", function() { var modal = new bootstrap.Modal(document.getElementById("aboutModal")); var dropdown = new bootstrap.Dropdown(document.getElementById("dropdownMenu2")); if (window.location.hash.toLowerCase() === "#about") { @@ -8,4 +8,4 @@ document.addEventListener("DOMContentLoaded", function() { modal.hide(); dropdown.show(); } -}); \ No newline at end of file +});