Jonas232005 (Talk | contribs) |
Jonas232005 (Talk | contribs) |
||
Line 1,616: | Line 1,616: | ||
<script> | <script> | ||
window.onload = function () { | window.onload = function () { | ||
+ | |||
+ | var top = document.querySelector("#my-top"); | ||
+ | window.addEventListener("scroll", ()=>{ | ||
+ | top.classList.toggle("onscroll", window.scrollY > 300); | ||
+ | }); | ||
//original navigation | //original navigation | ||
Line 1,678: | Line 1,683: | ||
}); | }); | ||
}; | }; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
//bottle navigation | //bottle navigation |
Revision as of 09:23, 5 October 2021