bibhamrokhanpin/wp-content/__plugins/under-construction-page/wf-flyout/wf-flyout.js

25 lines
527 B
JavaScript
Raw Normal View History

2024-04-10 12:01:06 +00:00
/**
* Universal fly-out menu for WebFactory plugins
* (c) WebFactory Ltd, 2022
*/
jQuery(document).ready(function ($) {
$('#wff-button').on('click', function (e) {
e.preventDefault();
$('#wf-flyout').toggleClass('opened');
$('#wff-overlay').toggle();
return false;
}); // open/close menu
$('#wff-overlay').on('click', function (e) {
e.preventDefault();
$(this).hide();
$('#wf-flyout').removeClass('opened');
return false;
}); // click on overlay - hide menu
}); // jQuery ready