(function() {
// Segnala la presenza di Funding Choices
function signalGooglefcPresent() {
if (!window.frames['googlefcPresent']) {
if (document.body) {
const iframe = document.createElement('iframe');
iframe.style = 'width:0;height:0;border:none;display:none;';
iframe.name = 'googlefcPresent';
document.body.appendChild(iframe);
} else {
setTimeout(signalGooglefcPresent, 0);
}
}
}
signalGooglefcPresent();
})();
document.addEventListener("DOMContentLoaded", function() {
setTimeout(function() {
// Se Funding Choices non è stato caricato, mostra messaggio locale
if (!window.frames['googlefcPresent']) {
let div = document.createElement('div');
div.id = 'adblock-fallback';
div.innerHTML = `
We noticed you might be using an ad blocker.
Please consider whitelisting ItaMilRadar.com or disabling your ad blocker to support our independent reporting on military aviation in the Mediterranean. ❤️
`;
document.body.prepend(div);
}
}, 3000);
});
Leave a comment