HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/z/w/a/zwafgyp/coolswim/wp-content/plugins/ultimate-member/assets/js/um-responsive.js
jQuery( window ).on( 'load',function() {
	um_responsive();
	um_modal_responsive();
});

// Resize using debounce.
// * https://medium.com/geekculture/debounce-handle-browser-resize-like-a-pro-994cd522e14b
// * https://davidwalsh.name/javascript-debounce-function
jQuery(window).on( 'resize', _.debounce( function() {
	responsive_Modal();

	wp.hooks.doAction( 'um_window_resize' );

	um_responsive();
	um_modal_responsive();
}, 300 ) );

wp.hooks.addAction( 'um_admin_modal_success_result', 'um_frontend_responsive', function( $adminModal ) {
	// Make responsive script only when live preview,
	if ( $adminModal.find('.um-admin-modal-body').find('.um').length ) {
		um_responsive();
	}
});