1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-26 02:57:31 +00:00
Yuika/assets/js/nav.js
2019-11-09 17:16:56 +07:00

25 lines
560 B
JavaScript

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) ;
});
}
});