![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/hessa.corals.io/wp-content/plugins/trx_popup/js/ |
var trx_popup = jQuery(".trx_popup"); var trx_popup_delay = trx_popup.data('delay'); var trx_popup_interval = trx_popup.data('refresh-interval'); jQuery(window).on('load', function() { 'use strict'; if ( window.self !== window.top) { return; } setTimeout(function() { trx_popup_open_close(); }, trx_popup_delay * 1000); }); function trx_popup_open_close() { 'use strict'; // Close jQuery(".trx_popup_close").on('click', function() { trx_popup.addClass('close'); setTimeout(function() { trx_popup.remove(); }, 1000); }); // Set/remove cache if ( trx_popup.hasClass("has-cache") ) { jQuery(".trx_popup_close").on('click', function() { jQuery.cookie('trx-popup-has-cache', 'true', { expires: trx_popup_interval }); }); } else { jQuery.removeCookie('trx-popup-has-cache') } if ( jQuery.cookie('trx-popup-has-cache') == 'true' ) { trx_popup.hide(); } else { jQuery(".trx_popup.publish").show(); } }