Init with some changes to the Serif Theme
This commit is contained in:
commit
912d143813
243 changed files with 15251 additions and 0 deletions
9
assets/js/scripts.js
Normal file
9
assets/js/scripts.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
var body = document.querySelector('body')
|
||||
var menuTrigger = document.querySelector('#toggle-main-menu-mobile');
|
||||
var menuContainer = document.querySelector('#main-menu-mobile');
|
||||
|
||||
menuTrigger.onclick = function() {
|
||||
menuContainer.classList.toggle('open');
|
||||
menuTrigger.classList.toggle('is-active')
|
||||
body.classList.toggle('lock-scroll')
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue