| Server IP : 146.59.209.152 / Your IP : 216.73.216.46 Web Server : Apache System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : infrafs ( 43850) PHP Version : 8.2.29 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/infrafs/INFRABIKEUS/wp-content/plugins/copy-delete-posts/analyst/templates/ |
Upload File : |
<script type="text/javascript">
(function ($) {
var isOptingIn = false
$('#analyst-opt-in-modal').appendTo($('body'))
var makeOptIn = function (pluginId) {
if (isOptingIn) return
isOptingIn = true
$.ajax({
url: ajaxurl,
method: 'POST',
data: {
action: 'analyst_opt_in_' + pluginId,
},
success: function () {
$('#analyst-opt-in-modal').hide()
isOptingIn = false
var optOutAction = $('<a />').attr({
class: 'analyst-action-opt analyst-opt-out',
'analyst-plugin-id': pluginId,
'analyst-plugin-signed': '1'
})
.text('Opt Out')
$('.analyst-opt-in[analyst-plugin-id="'+ pluginId +'"').replaceWith(optOutAction)
$('[analyst-plugin-id="' + pluginId + '"').attr('analyst-plugin-opted-in', 1)
}
})
}
$(document).on('click', '.analyst-opt-in:not([loading])', function() {
var pluginId = $(this).attr('analyst-plugin-id')
var isSigned = $(this).attr('analyst-plugin-signed') === '1'
if (!isSigned) {
$('#analyst-install-modal')
.attr('analyst-plugin-id', pluginId)
.show()
return;
}
$('#analyst-install-modal').attr({'analyst-plugin-id': pluginId})
$(this).attr('loading', true).text('Opting In...')
makeOptIn(pluginId);
})
$('.opt-in-modal-close').click(function () {
$('#analyst-opt-in-modal').hide()
})
})(jQuery)
</script>