1
0
mirror of https://github.com/moexe/FFFGateway-Monitoring.git synced 2024-11-21 21:53:40 +01:00
FFFGateway-Monitoring/script.js

15 lines
322 B
JavaScript
Raw Normal View History

2017-01-21 19:00:26 +01:00
( 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 );