mirror of
https://github.com/Damillora/Yuika
synced 2024-11-14 22:07:32 +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();
|
|
}
|
|
});
|