mirror of
https://github.com/Damillora/Yuika
synced 2024-11-26 10:57:32 +00:00
25 lines
560 B
JavaScript
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) ;
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
|