mv theme to local control
This commit is contained in:
parent
3ac32ec7e9
commit
c980366d63
189 changed files with 22593 additions and 0 deletions
24
themes/aether/assets/js/core.js
Normal file
24
themes/aether/assets/js/core.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
|
||||
function cardPressed() {
|
||||
this.classList.add('card-hover');
|
||||
}
|
||||
|
||||
function cardReleased() {
|
||||
this.classList.remove('card-hover');
|
||||
}
|
||||
|
||||
function hamburgerMenuPressed() {
|
||||
if (this.parentNode.classList.contains('hamburger-menu-open')) {
|
||||
document.body.classList.remove('no-scroll');
|
||||
this.parentNode.classList.remove('hamburger-menu-open')
|
||||
this.setAttribute('aria-expanded', "false");
|
||||
document.body.style.paddingRight = 0 + "px";
|
||||
} else {
|
||||
document.body.style.paddingRight = window.innerWidth - document.documentElement.clientWidth + "px";
|
||||
document.body.classList.add('no-scroll');
|
||||
this.parentNode.classList.add('hamburger-menu-open')
|
||||
this.setAttribute('aria-expanded', "true");
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue