1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-13 21:47:32 +00:00

chore: Put the menu handlers on the ready block

This commit is contained in:
Damillora 2021-04-14 19:38:03 +07:00
parent 2fc9c06324
commit bcf0b2eef3

View File

@ -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');