document.addEventListener("DOMContentLoaded", function () { // Update the copyright text with the link let esm = "ورقة"; let link = "https://warrqa.com"; let copyrightText = document.querySelector(".copyright-text p"); if (copyrightText) { copyrightText.innerHTML = ` صنع بإتقان على ${esm} | 2024 `; } // Add the logo to the footer let logoDiv = document.createElement('div'); logoDiv.classList.add('logo-div', 'mb-6'); // Add a custom class and margin for spacing // Create the logo element let logoImg = document.createElement('img'); logoImg.src = 'https://cdn.salla.sa/cdn-cgi/image/fit=scale-down,width=400,height=400,onerror=redirect,format=auto/rAzAXB/evolicYqoI1gteKzKrhTLKfeNfw1JFTfodHQGdCL.png'; logoImg.alt = 'Logo'; logoImg.width = 100; logoImg.height = 100; logoImg.style.maxWidth = '100%'; // Ensure responsive scaling // Append the logo to the new div logoDiv.appendChild(logoImg); // Get the footer grid container let footerGrid = document.querySelector('.store-footer .container.grid'); // Insert the new div as the first child of the footer grid if (footerGrid) { footerGrid.insertBefore(logoDiv, footerGrid.firstChild); } });