/* Add custom Js code below */ if (!document.querySelector('.breadcrumbs')) { const header = document.querySelector('header.store-header'); if(typeof header !== 'undefined' && header !== null) { if (header) { header.id = 'headerIDD'; // Replace 'my-custom-id' with your desired ID } } } document.addEventListener("DOMContentLoaded", function () { let targetImg = document.querySelector('img[src="https://cdn.salla.sa/form-builder/p8Gtmj5eBj91hHmnAq6RHBv0XEwJg5YUI3iRtEu6.png"]'); if (targetImg) { let firstSection = targetImg.closest("section"); // Finds the first section let secondSection = firstSection?.nextElementSibling; // Gets the second section if (secondSection) { let newElement = document.createElement("div"); newElement.innerHTML = `
`; // Replace with your desired HTML secondSection.insertAdjacentElement("afterend", newElement); } } }); document.querySelectorAll('.swiper-slide').forEach(slide => { let heading = slide.querySelector('h2'); if (heading && heading.textContent.trim() === "فن الأظافر") { let icon = slide.querySelector('i'); // Select the tag if (icon) { let img = document.createElement('img'); img.src = "https://cdn.salla.sa/form-builder/edR4Fjqly3FKSVwNaRmCIx8swr2sMpe8wgEaiT5C.png"; img.classList.add("imgCatSlide"); icon.replaceWith(img); // Replace with } } }); document.querySelectorAll('.swiper-slide').forEach(slide => { let heading = slide.querySelector('h2'); if (heading && heading.textContent.trim() === "المساج") { let icon = slide.querySelector('i'); // Select the tag if (icon) { let img = document.createElement('img'); img.src = "https://cdn.salla.sa/form-builder/TOvqS9Kznfh91YNytJAzbGzyCLf1ii8cAPDQDwEt.png"; img.classList.add("imgCatSlide"); icon.replaceWith(img); // Replace with } } }); document.querySelectorAll('.swiper-slide').forEach(slide => { let heading = slide.querySelector('h2'); if (heading && heading.textContent.trim() === "إزاله الشعر") { let icon = slide.querySelector('i'); // Select the tag if (icon) { let img = document.createElement('img'); img.src = "https://cdn.salla.sa/form-builder/y5X4647bEp4U7WcNYfCu6HMcbyIFNauws4B5QjMx.png"; img.classList.add("imgCatSlide"); icon.replaceWith(img); // Replace with } } }); document.querySelectorAll('.swiper-slide').forEach(slide => { let heading = slide.querySelector('h2'); if (heading && heading.textContent.trim() === "حمامات العنايه") { let icon = slide.querySelector('i'); // Select the tag if (icon) { let img = document.createElement('img'); img.src = "https://cdn.salla.sa/form-builder/1JE3MD7Kk6nV5D67nhiZSVJ65eFakxZdTLRskEHO.png"; img.classList.add("imgCatSlide"); icon.replaceWith(img); // Replace with } } }); document.querySelectorAll('.swiper-slide').forEach(slide => { let heading = slide.querySelector('h2'); if (heading && heading.textContent.trim() === "بكجات المساج المستمر") { let icon = slide.querySelector('i'); // Select the tag if (icon) { let img = document.createElement('img'); img.src = "https://cdn.salla.sa/form-builder/29k1ycQ30OiVOXIDZLh8KVsHR56H9uC9CejVVlme.png"; img.classList.add("imgCatSlide"); icon.replaceWith(img); // Replace with } } }); document.querySelectorAll('.swiper-slide').forEach(slide => { let heading = slide.querySelector('h2'); if (heading && heading.textContent.trim() === "عناية الأظافر") { let icon = slide.querySelector('i'); // Select the tag if (icon) { let img = document.createElement('img'); img.src = "https://cdn.salla.sa/form-builder/9PB9K1e9jWwndr1sQ2ozeo5XgNnoQ268c2PoB9i0.png"; img.classList.add("imgCatSlide"); icon.replaceWith(img); // Replace with } } }); document.querySelectorAll('.s-block__title .right-side h2').forEach(h2 => { let icon = document.createElement('i'); icon.className = "text-lg align-text-bottom sicon-hr"; icon.style.color = "#8E7E68"; // Set the icon color h2.prepend(icon); }); document.querySelectorAll('.store-footer__inner h3').forEach(h3 => { if (h3.textContent.trim() === "Our Spa") { let img = document.createElement('img'); img.src = "https://cdn.salla.sa/form-builder/lLnPViqaDWu3PiEbJEEkB9vmSKLklydyTkAvfi4a.png"; img.alt = "Our Spa"; // Accessibility img.classList.add("footer-logo"); img.className = "logoFoot"; h3.replaceWith(img); // Replace

with } }); document.addEventListener("DOMContentLoaded", function () { let footerInner = document.querySelector('.store-footer__inner > .container'); if (footerInner) { // Remove all classes except "container" footerInner.className = "container secFootersec"; } });