… mybutton = document.getElementById(“backToTop”); … for the back to top Button visiblity
… document.querySelector(‘#nav-toggle’).addEventListener(‘click’, function() {
this.classList.toggle(‘active’); … for the navigation…
… btn.onclick = function() {
modal.style.display = “block”;
}
… to open a popup window after clicking a link
that’s all…
I read the article as Screamingfrog. I think, it is the best to look for clean solutions about popup windows and navigation. I got the ideas from the internet and copy/implement the free code.
It seems, it is a good idea to read and understand first…
If you have a tipp for a clean solution for “mobile first” navigation combined with a desktop menu that prevends from errors like this…
thank’s for your support