document.addEventListener("DOMContentLoaded", function () { setTimeout(function () { const zone = document.querySelector(".zone-1"); if (!zone) return; // Add ad tag elements var insTag = document.createElement("ins"); insTag.id = "1093492"; insTag.setAttribute("data-width", "300"); insTag.setAttribute("data-height", "250"); zone.appendChild(insTag); var juicyScript = document.createElement("script"); juicyScript.type = "text/javascript"; juicyScript.setAttribute("data-cfasync", "false"); juicyScript.async = true; juicyScript.src = "https://poweredby.jads.co/js/jads.js"; zone.appendChild(juicyScript); var pushScript = document.createElement("script"); pushScript.type = "text/javascript"; pushScript.setAttribute("data-cfasync", "false"); pushScript.text = "(adsbyjuicy = window.adsbyjuicy || []).push({'adzone':1093492});"; zone.appendChild(pushScript); // Watch for iframe (ad) being loaded const observer = new MutationObserver(() => { const iframe = zone.querySelector('iframe'); if (iframe) { document.getElementById("adCloseBtn").style.display = "block"; observer.disconnect(); } }); observer.observe(zone, { childList: true, subtree: true }); // Fallback in case ad is blocked setTimeout(() => { const iframe = zone.querySelector('iframe'); if (!iframe) { zone.innerHTML = `