Server IP : 198.54.125.146 / Your IP : 18.191.24.17 [ Web Server : LiteSpeed System : Linux business38.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : engixevu ( 716) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/engixevu/smartjobbox.com/wp-content/plugins/ad-inserter/includes/js/ |
Upload File : |
jQuery (function ($) { $(document).ready(function($) { function show_review_notice () { $('.ai-notice').fadeIn ("fast", function() { $(this).css ('display', 'table'); }); } if (typeof ajaxurl !== 'undefined') { // var nonce = $('.ai-notice[nonce]').attr ('nonce'); var nonce = $('.ai-notice[data-value]').attr ('data-value'); if (typeof nonce !== 'undefined') { nonce = atob (nonce); $.ajax (ajaxurl, { type: 'POST', data: { action: 'ai_ajax_backend', ai_check: nonce, 'notice-check': nonce } }).done (function (data) { // console.log ('AI NOTICE CHECK', nonce, data); if (data == nonce) { setTimeout (show_review_notice, 500); } }); } } }); $(document).on ('click', '.ai-notice .ai-notice-dismiss', function () { var ai_debug = parseInt ($('#ai-data').attr ('js_debugging')); var notice_div = $(this).closest ('.ai-notice'); var nonce = atob (notice_div.attr ('data-value')); var notice = notice_div.data ('notice'); var action = $(this).data ('notice'); if (ai_debug) console.log ('AI NOTICE CLICK', notice, action); notice_div.hide (); // Since WP 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php $.ajax (ajaxurl, { type: 'POST', data: { action: 'ai_ajax_backend', ai_check: nonce, notice: notice, click: action, } }); }); });