1
0
mirror of https://github.com/moexe/FFFGateway-Monitoring.git synced 2024-11-21 13:43:41 +01:00
FFFGateway-Monitoring/script.js
Robert Langhammer 008772344c Ein Anfang
2017-01-21 18:00:26 +00:00

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 );