1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-05 10:27:32 +00:00
Yuika/assets/js/nav.js

25 lines
560 B
JavaScript
Raw Normal View History

2019-11-09 10:07:23 +00:00
function sliderheight(a) {
divHeight = $('.navbar').height();
if(a) {
$('.nav').css({'background-color' : '#3b90c6'});
} else {
$('.nav').css({'background-color' : ''});
}
}
$("#menushow").click(function() {
var menu = $(".nav");
var menubtn = $("#menushow");
if(menu.is(":hidden")) {
sliderheight(true);
menu.slideDown(250);
} else {
menu.slideUp(250, function() {
sliderheight(false) ;
});
}
});