mirror of
https://github.com/moexe/FFFGateway-Monitoring.git
synced 2024-11-21 13:43:41 +01:00
15 lines
322 B
JavaScript
15 lines
322 B
JavaScript
( function( $ ) {
|
|
$( document ).ready(function() {
|
|
$('#cssmenu').prepend('<div id="menu-button">Menu</div>');
|
|
$('#cssmenu #menu-button').on('click', function(){
|
|
var menu = $(this).next('ul');
|
|
if (menu.hasClass('open')) {
|
|
menu.removeClass('open');
|
|
}
|
|
else {
|
|
menu.addClass('open');
|
|
}
|
|
});
|
|
});
|
|
} )( jQuery );
|