1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-26 19:07:31 +00:00
Yuika/assets/js/nav-menu.js

18 lines
283 B
JavaScript
Raw Normal View History

2019-11-14 08:25:28 +00:00
$("#menushow").click(function() {
if($('.nav').css('display') == 'none') {
$(".nav").show();
} else {
$(".nav").hide();
}
});
$(window).resize(function() {
var wi = $(window).width();
if(wi >= 768) {
$(".nav").show();
} else {
$(".nav").hide();
}
});