mirror of
https://github.com/Damillora/Yuika
synced 2024-11-26 19:07:31 +00:00
18 lines
283 B
JavaScript
18 lines
283 B
JavaScript
|
|
||
|
$("#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();
|
||
|
}
|
||
|
});
|