| Server IP : 104.26.3.156 / Your IP : 216.73.216.185 Web Server : nginx/1.27.1 System : Linux us-1 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64 User : vinodai ( 3134) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v1396/wwwindicidolscom/public_html/wp-content/plugins/hostinger/src/js/ |
Upload File : |
document.addEventListener('DOMContentLoaded', function() {
const pluginSplitClose = document.getElementById('plugin-split-close');
if(pluginSplitClose) {
pluginSplitClose.addEventListener('click', function () {
let nonceElement = document.getElementById('hts_close_plugin_split_nonce');
if (!nonceElement) {
console.error('Nonce element not found.');
return;
}
let nonce = nonceElement.value;
fetch(ajaxurl, {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
body: new URLSearchParams({
'action': 'hostinger_dismiss_plugin_split_notice',
'nonce': nonce
}),
})
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok ' + response.statusText);
}
return response.json();
})
.then(data => {
document.getElementById('hostinger-plugin-split-notice').style.display = 'none';
})
.catch(error => {
console.error('Error:', error);
});
});
}
});