Move css and js files from static/* to assets/*

This commit is contained in:
himanoa
2019-04-03 17:24:08 +09:00
parent f909d2f5d4
commit 3950afca09
5 changed files with 0 additions and 0 deletions

24
assets/js/js/core.js Normal file
View 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");
}
}