File manager - Edit - /home/antilam/web/antilam.ru/public_html/wp-content/plugins/wp-recipe-maker/assets/js/public/modal.js
Back
import MicroModal from 'micromodal'; import '../../css/public/modal.scss'; window.WPRecipeMaker = typeof window.WPRecipeMaker === "undefined" ? {} : window.WPRecipeMaker; window.WPRecipeMaker.modal = { open( uid, data = {} ) { MicroModal.show('wprm-popup-modal-' + uid, { onShow: modal => { const type = modal.dataset.type; document.dispatchEvent( new CustomEvent( 'wprm-modal-open', { detail: { type, uid, modal, data } } ) ); }, onClose: modal => { const type = modal.dataset.type; document.dispatchEvent( new CustomEvent( 'wprm-modal-close', { detail: { type, uid, modal, data } } ) ); }, awaitCloseAnimation: true, }); }, close( uid ) { MicroModal.close('wprm-popup-modal-' + uid); }, };
| ver. 1.4 |
Github
|
.
| PHP 8.4.22 | Generation time: 0.1 |
proxy
|
phpinfo
|
Settings