diff --git a/index.html b/index.html index 88eb56f..6a6f026 100644 --- a/index.html +++ b/index.html @@ -20,10 +20,12 @@ +
diff --git a/script.js b/script.js index c6aad63..e93784c 100644 --- a/script.js +++ b/script.js @@ -9,6 +9,9 @@ document.addEventListener('DOMContentLoaded', function () { interval: 5000 }); + var elems = document.querySelectorAll('.sidenav'); + var sidenav = M.Sidenav.init(elems, {}); + var mailcypts = document.querySelectorAll(".cryptmail"); for (var i = 0; i < mailcypts.length; i++) { mailcypts[i].onclick = function () { @@ -19,11 +22,14 @@ document.addEventListener('DOMContentLoaded', function () { var hashAnchors = document.querySelectorAll("a[href^='#']"); for (var i = 0; i < hashAnchors.length; i++) { - hashAnchors[i].onclick = function () { - var target = this.getAttribute("href"); - scrollToElement(target); - return false; + if (hashAnchors[i].getAttribute("href") != "#") { + hashAnchors[i].onclick = function () { + var target = this.getAttribute("href"); + scrollToElement(target); + return false; + } } + } });