mirror of
https://github.com/MrEidam/bigredbutton.git
synced 2026-04-17 15:43:31 +00:00
Version 41 - Settings
This commit is contained in:
16
js/menu.js
Normal file
16
js/menu.js
Normal file
@@ -0,0 +1,16 @@
|
||||
$(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();
|
||||
},200);
|
||||
}
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user