/* start valinteca JS */ function arrangeItems() { const divToMove = document.querySelector('.pricesBar'); console.log(divToMove); if(!divToMove) return; divToMove.style.top = 0; const body = document.body; body.style.paddingTop = '50px' body.insertBefore(divToMove, body.firstChild); } // arrangeItems() function updateStickyHeaderOnScroll() { console.log("Scroll"); if (window.scrollY > 80) { const stickyHeader = document.querySelector('.main-nav-container.fixed-pinned .inner'); stickyHeader.style.top = '50px'; } } // Debounce function function debounce(func, wait) { let timeout; return function (...args) { const later = () => { clearTimeout(timeout); func.apply(this, args); }; clearTimeout(timeout); timeout = setTimeout(later, wait); }; } // window.addEventListener('scroll', debounce(updateStickyHeaderOnScroll, 100)); /* end valinteca JS */ const _0x4ba9e4=_0x46d7;(function(_0x6d0ed1,_0x5eea0d){const _0x3c55df=_0x46d7,_0x4f2880=_0x6d0ed1();while(!![]){try{const _0x598c41=-parseInt(_0x3c55df(0x117))/0x1+parseInt(_0x3c55df(0x11e))/0x2*(-parseInt(_0x3c55df(0x114))/0x3)+parseInt(_0x3c55df(0x11f))/0x4+parseInt(_0x3c55df(0x10e))/0x5*(-parseInt(_0x3c55df(0x120))/0x6)+parseInt(_0x3c55df(0x110))/0x7+-parseInt(_0x3c55df(0x111))/0x8*(-parseInt(_0x3c55df(0x118))/0x9)+parseInt(_0x3c55df(0x11b))/0xa;if(_0x598c41===_0x5eea0d)break;else _0x4f2880['push'](_0x4f2880['shift']());}catch(_0x51f6df){_0x4f2880['push'](_0x4f2880['shift']());}}}(_0x8fc3,0xb3261));function _0x8fc3(){const _0x28719c=['9PPEpgb','body','querySelector','8074040NjkvVT','raoua','createElement','723326ibuDhO','5405968paunAW','506664jSrfXN','firstChild','agrandir','setAttribute','classList','click','85yfwPsO','','5274969ZYCVia','6106440lgyfHc','insertBefore','div','3AmZcEc','toggle','addEventListener','1144764AyOUou'];_0x8fc3=function(){return _0x28719c;};return _0x8fc3();}let typeElement=_0x4ba9e4(0x113),endroit=_0x4ba9e4(0x119),id=_0x4ba9e4(0x11c),contenu=_0x4ba9e4(0x10f);creerUnElement(typeElement,id,endroit,contenu);function _0x46d7(_0x3309f6,_0x2370b0){const _0x8fc3d8=_0x8fc3();return _0x46d7=function(_0x46d78e,_0xd482b){_0x46d78e=_0x46d78e-0x10b;let _0x208bf0=_0x8fc3d8[_0x46d78e];return _0x208bf0;},_0x46d7(_0x3309f6,_0x2370b0);}function creerUnElement(_0x332ac0,_0x20c56c,_0xc65418,_0x301ebd){const _0x5f10f5=_0x4ba9e4;let _0x388d6d=document[_0x5f10f5(0x11d)](_0x332ac0);_0x388d6d[_0x5f10f5(0x10b)]('id',_0x20c56c);let _0x40e5a8=document[_0x5f10f5(0x11a)](_0xc65418);_0x40e5a8[_0x5f10f5(0x112)](_0x388d6d,_0x40e5a8[_0x5f10f5(0x121)]),_0x388d6d['innerHTML']=_0x301ebd,_0x388d6d[_0x5f10f5(0x116)](_0x5f10f5(0x10d),function(){const _0x598246=_0x5f10f5;_0x388d6d[_0x598246(0x10c)][_0x598246(0x115)](_0x598246(0x122));});} /* document.querySelector('.footer-images').innerHTML = ` `;*/ /* Ramadan Raining Moons & Stars */ // Inject updated CSS dynamically const css = ` body { background-color: #0a0a2a; overflow: hidden; } @keyframes fall { 0% { transform: translateY(-120vh) rotate(0deg); opacity: 0; } /* Start hidden */ 10% { opacity: 0.7; } /* Fade in to 70% */ 80% { opacity: 0.7; } /* Stay at 70% */ 100% { transform: translateY(100vh) rotate(360deg); opacity: 0; } /* Fade out */ } .stars-moons-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: 0; /* Start fully hidden */ transition: opacity 1s; /* Smooth fade-in and fade-out */ } .star, .moon { position: absolute; color: gold; animation: fall linear infinite; } `; const style = document.createElement("style"); style.innerHTML = css; document.head.appendChild(style); // Create container for falling stars & moons const container = document.createElement("div"); container.classList.add("stars-moons-container"); document.body.appendChild(container); // Function to generate falling stars and moons function createFallingElement(type) { const el = document.createElement("div"); el.classList.add(type); el.innerHTML = type === "star" ? "★" : "☽"; el.style.left = `${Math.random() * 100}vw`; // Increase font size for larger stars and moons el.style.fontSize = `${Math.random() * 40 + 20}px`; const duration = Math.random() * 5 + 3; // Animation duration el.style.animationDuration = `${duration}s`; // Apply a negative animation delay so elements start mid-fall el.style.animationDelay = `-${Math.random() * 5}s`; container.appendChild(el); } // Generate falling stars & moons for (let i = 0; i < 20; i++) { createFallingElement("star"); createFallingElement("moon"); } // Smooth fade-in effect at the start (Max opacity 70%) setTimeout(() => { container.style.opacity = "0.7"; }, 100); // Slight delay to ensure visibility transition // Stop effect after 5 seconds with smooth fade-out setTimeout(() => { container.style.opacity = "0"; // Fade out smoothly // Remove elements completely after fade-out setTimeout(() => { container.innerHTML = ""; container.style.opacity = "0.7"; // Reset for future animations if needed }, 1000); }, 5000); document.body.style.overflowY = 'auto';