/* Add custom Js code below */ /* Add custom Js code below */ document.addEventListener("DOMContentLoaded", function() { let t = document.querySelector("footer.store-footer .text-gray-400"); t.innerHTML = ""; let link = document.createElement("a"); link.href = "https://madmooun.com/"; link.target = "_blank"; let img = document.createElement("img"); img.src = "https://i.ibb.co/20jTLRFq/Group-1-38-1.png"; img.alt = "madmooun.com"; img.style.width = "175px"; img.style.height = "auto"; link.appendChild(img); t.appendChild(link); }); /*****************************************/ /*image log footer*/ /*****************************************/ document.addEventListener("DOMContentLoaded", function () { let targetElement = document.querySelector("footer.store-footer .lg\\:col-span-2.rtl\\:lg\\:pl-20.ltr\\:lg\\:pr-20 h3"); if (targetElement) { // إخفاء h3 targetElement.style.display = "none"; // إنشاء عنصر الصورة let imgElement = document.createElement("img"); imgElement.src = "https://i.ibb.co/rK2p5Vk4/Untitled-1-9.png"; imgElement.alt = "logo "; imgElement.style.width = "9rem"; imgElement.style.marginTop = "-4rem"; targetElement.parentNode.appendChild(imgElement); } }); /**************************************/ document.addEventListener("DOMContentLoaded", () => { let container = document.querySelector(".store-footer__inner salla-apps-icons"); console.log(container); const newmap = `
`; if (container) { container.insertAdjacentHTML("beforeend", newmap); // إضافة الديف الجديد بداخل العنصر المستهدف } else { console.warn("العنصر المستهدف غير موجود"); } });