mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	Update js
This commit is contained in:
		| @@ -17,13 +17,12 @@ | |||||||
|     document.querySelectorAll('pre code').forEach((block) => { |     document.querySelectorAll('pre code').forEach((block) => { | ||||||
|       hljs.highlightBlock(block); |       hljs.highlightBlock(block); | ||||||
|     }); |     }); | ||||||
|  |  | ||||||
|     setMenuListener(); |     setMenuListener(); | ||||||
|   }); |   }); | ||||||
|  |  | ||||||
|   function setMenuListener() { |   function setMenuListener() { | ||||||
|     var menuToggle = document.querySelector('.menu-toggle'); |     var menuToggle = document.querySelector('.menu-toggle'); | ||||||
|     var body = document.querySelector('body'); |     var body = document.querySelector('body'); | ||||||
|  |  | ||||||
|     menuToggle.addEventListener('click', function() { |     menuToggle.addEventListener('click', function() { | ||||||
|       body.classList.toggle('no-scroll'); |       body.classList.toggle('no-scroll'); | ||||||
|     }, false); |     }, false); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 nanxiaobei
					nanxiaobei