document.addEventListener("DOMContentLoaded", () => { const section = document.querySelector("#app > div.app-inner.flex.flex-col.min-h-full > section:nth-child(3)"); if (!section) return; const menuHTML = `
`; function updateMenu() { const existingMenu = section.querySelector(".side-menu"); if (window.innerWidth >= 1024) { if (!existingMenu) { section.style.display = "flex"; section.style.alignItems = "flex-start"; section.style.justifyContent = "flex-start"; section.style.gap = "20px"; section.style.flexWrap = "wrap"; section.insertAdjacentHTML("afterbegin", menuHTML); } } else { if (existingMenu) existingMenu.remove(); section.style.display = ""; section.style.alignItems = ""; section.style.justifyContent = ""; section.style.gap = ""; section.style.flexWrap = ""; } } updateMenu(); window.addEventListener("resize", updateMenu); }); document.addEventListener("DOMContentLoaded", () => { const footer = document.querySelector("footer.store-footer"); if (!footer) return; const logoHTML = `

جازل افرش بيتك على ذوقك
بجودة تستحقها وراحة بلا حدود

Jazzil Home Logo
`; footer.insertAdjacentHTML("afterbegin", logoHTML); const logoContainer = footer.querySelector(".logo-container"); if (logoContainer) { footer.style.display = "flex"; footer.style.flexDirection = "column"; footer.style.alignItems = "center"; // Make logo bigger logoContainer.style.transform = "scale(1.4)"; logoContainer.style.transformOrigin = "center"; // Handle responsive stacking const adjustLayout = () => { if (window.innerWidth <= 768) { logoContainer.style.flexDirection = "column"; logoContainer.style.textAlign = "center"; logoContainer.style.gap = "0.5rem"; } else { logoContainer.style.flexDirection = "row"; logoContainer.style.gap = "1rem"; } logoContainer.style.display = "flex"; logoContainer.style.alignItems = "center"; logoContainer.style.justifyContent = "center"; }; // Apply layout immediately + on resize adjustLayout(); window.addEventListener("resize", adjustLayout); } }); document.addEventListener("DOMContentLoaded", function () { const section = document.querySelector("#app > div.app-inner.flex.flex-col.min-h-full > section:nth-child(20)"); if (!section) return; // Add the class only once section.classList.add("centered-title"); const container = section.querySelector(".container"); if (!container) return; // Avoid inserting if it already exists if (!container.querySelector(".s-block__title.angel-products-title")) { const newDiv = document.createElement("div"); newDiv.className = "s-block__title angel-products-title"; newDiv.innerHTML = `

لية تختار جازل

`; // Insert above banner const banner = container.querySelector(".banner"); if (banner) { container.insertBefore(newDiv, banner); } else { container.appendChild(newDiv); } } }); document.addEventListener("DOMContentLoaded", function() { // Mapping of page URLs to their banner image links const bannerMap = { "https://jazzill.com/%D8%A7%D9%84%D9%85%D9%81%D8%A7%D8%B1%D8%B4/c1489028710": "https://i.postimg.cc/bvkWJwZZ/3.webp", "https://jazzill.com/%D8%A7%D9%84%D9%84%D8%A8%D8%A7%D8%AF/c334902026": "https://i.postimg.cc/1zw2t384/4.webp", "https://jazzill.com/%D8%A7%D9%84%D9%85%D8%AE%D8%AF%D8%A7%D8%AA/c159813653": "https://i.postimg.cc/DzLHZwS5/5.webp", "https://jazzill.com/%D8%A7%D8%B1%D9%88%D8%A7%D8%A8-%D8%A7%D9%84%D8%A7%D8%B3%D8%AA%D8%AD%D9%85%D8%A7%D9%85-%D9%88%D8%A7%D9%84%D9%85%D9%86%D8%A7%D8%B4%D9%81/c1358044177": "https://i.postimg.cc/3wmVRxk1/6.webp", "https://jazzill.com/%D8%A7%D9%84%D9%85%D9%86%D8%A7%D8%B4%D9%81/c1317107996": "https://i.postimg.cc/FK38RHYD/7.webp", "https://jazzill.com/%D9%88%D8%A7%D9%82%D9%8A-%D9%85%D8%B1%D8%AA%D8%A8%D8%A9/c1259739649": "https://i.postimg.cc/cJw2HLv7/8.webp", "https://jazzill.com/offers": "https://i.postimg.cc/FK38RHYf/10.webp" }; const currentURL = window.location.href; const bannerImage = bannerMap[currentURL]; if (bannerImage) { const targetSection = document.querySelector(".cat-square-banner.mt-4"); if (targetSection && !document.querySelector(".s-block--fixed-banner")) { // Create the banner section const newSection = document.createElement("section"); newSection.className = "s-block s-block--fixed-banner wide-placeholder"; newSection.innerHTML = `
`; // Insert it before the target section targetSection.parentNode.insertBefore(newSection, targetSection); } } });