mirror of
https://github.com/MrEidam/bigredbutton.git
synced 2026-04-17 15:43:31 +00:00
Version - 47
This commit is contained in:
32
js/menu.js
32
js/menu.js
@@ -1,16 +1,18 @@
|
||||
$(document).ready(function(){
|
||||
$('.button').click(function(){
|
||||
if($(this).hasClass('expand')){
|
||||
$('ul').slideUp(function(){
|
||||
$('.button').removeClass('expand');
|
||||
$('.fas').removeClass('expand');
|
||||
})
|
||||
}else{
|
||||
$(this).addClass('expand');
|
||||
setTimeout(function(){
|
||||
$('.fas').addClass('expand');
|
||||
$('ul').stop().slideDown();
|
||||
},50);
|
||||
}
|
||||
function menuStart(){
|
||||
$(document).ready(() => {
|
||||
$('.button').click(() => {
|
||||
if($('.button').hasClass('expand')){
|
||||
$('ul').slideUp(() => {
|
||||
$('.button').removeClass('expand');
|
||||
$('.fas').removeClass('expand');
|
||||
});
|
||||
}else{
|
||||
$('.button').addClass('expand');
|
||||
setTimeout(() => {
|
||||
$('.fas').addClass('expand');
|
||||
$('ul').stop().slideDown();
|
||||
},50);
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user