/* Add custom Js code below */ const faviconLink = document.querySelector('link[rel="icon"]'); if (faviconLink) { faviconLink.href = 'https://res.cloudinary.com/dkgxcys8h/image/upload/v1700643354/%D8%A7%D9%8A%D9%82%D9%88%D9%86%D8%A9_%D8%A7%D9%84%D9%88%D9%8A%D8%A81-01_vh0yuk.png'; } else { console.error('Favicon link element not found.'); } const navLinks = document.querySelectorAll(".main-menu li") navLinks.forEach(link => { const subMenu = link.querySelectorAll('ul li') if (subMenu.length == 0) { link.classList.remove("has-children") } }) const wrapper = document.querySelector(".col-lg-4.header-row.pull-left") const contactUS = document.createElement("a") contactUS.innerHTML = '' contactUS.setAttribute("href", "https://navajewellery.sa/ar/whatsapp/send") contactUS.style.display= "block" contactUS.style.marginTop = "4px" contactUS.style.marginLeft = "10px" wrapper.insertBefore(contactUS, wrapper.firstChild); let currentURL = window.location.href; if (currentURL.includes('/category/DmjDw')) { const container = document.querySelectorAll('.container')[1] const banner = document.createElement('img') banner.src="https://res.cloudinary.com/dkgxcys8h/image/upload/v1700494480/%D8%B7%D8%B1%D9%8A%D9%82%D8%A9_%D9%82%D9%8A%D8%A7%D8%B3_%D8%A7%D9%84%D8%AE%D9%88%D8%A7%D8%AA%D9%85_%D9%86%D8%A7%D9%81%D8%A7-_%D8%B4%D8%B9%D8%A7%D8%B1_%D8%AC%D8%AF%D9%8A%D8%AF_nduvoz.jpg" banner.setAttribute('alt', 'rings-size-guide') container.appendChild(banner) } const parentDiv = document.querySelectorAll('.footer-main .container .col-md-4.footer-item')[0]; const maroof = document.createElement('div'); maroof.innerHTML = ` store_creificate

مُـوثق لدى منصة اللأعمــال

`; parentDiv.appendChild(maroof) const ref = document.querySelector('footer .footer-main .container') const parent = document.querySelector('.footer-main') const logo = document.createElement('div') logo.classList.add("new-logo") logo.innerHTML = ` ` parent.insertBefore(logo, ref);