mirror of
https://github.com/Damillora/Yuika
synced 2024-11-22 09:17:33 +00:00
chore: Put the menu handlers on the ready block
This commit is contained in:
parent
2fc9c06324
commit
bcf0b2eef3
@ -1,17 +1,18 @@
|
||||
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
$("#menushow").click(function () {
|
||||
$(".site-header").toggleClass('enabled');
|
||||
$(".site-header__background").toggleClass('site-header__background--enabled');
|
||||
$(".menu").toggleClass('enabled');
|
||||
})
|
||||
$(".nav li").click(function(){
|
||||
$(".menu__item").click(function () {
|
||||
$(".site-header").toggleClass('enabled');
|
||||
$(".site-header__background").toggleClass('site-header__background--enabled');
|
||||
$(".menu").toggleClass('enabled');
|
||||
})
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
var nav = document.querySelector('.site-header');
|
||||
var feed = document.querySelector('main');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user