mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	| @@ -32,14 +32,6 @@ | |||||||
|             document.getElementById('menu').scrollLeft = localStorage.getItem("menu-scroll-position"); |             document.getElementById('menu').scrollLeft = localStorage.getItem("menu-scroll-position"); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     document.querySelectorAll('a[href^="#"]').forEach(anchor => { |  | ||||||
|         anchor.addEventListener("click", function (e) { |  | ||||||
|             var id = this.getAttribute("href").substr(1); |  | ||||||
|             document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({ |  | ||||||
|                 behavior: "smooth" |  | ||||||
|             }); |  | ||||||
|         }); |  | ||||||
|     }); |  | ||||||
|     var mybutton = document.getElementById("top-link"); |     var mybutton = document.getElementById("top-link"); | ||||||
|     window.onscroll = function () { |     window.onscroll = function () { | ||||||
|         if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) { |         if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange