const Company = {title: " ARHB Tv ",anchor: "https://wa.me/message/EQCG4IYVICZ4N1"} // function document.querySelectorAll("footer >div:nth-of-type(2) >span").forEach(function (e) { if (e.textContent.replace(/\s+/g, ' ').trim().includes("صنع بإتقان") || e.textContent.replace(/\s+/g, ' ').trim().includes("الحقوق محفوظة") && e.tagName == "P") { e.innerHTML = `

الحقوق محفوظة | 2025 ${Company.title}

`; } }) const h3 = document.querySelector('h3[data-swiper-parallax]'); const text = h3.innerHTML; const target = 'لكل أنــواع المحتـــوى'; if (text.includes(target)) { h3.innerHTML = text.replace( target, `${target}` ); } document.querySelectorAll('a.anim-txt-bar p').forEach(p => { p.innerHTML = p.innerHTML.replace( /عرض\s+محدود:/g, `🏆🔥 عرض محدود:` ); }); function updateBackground() { const swiperBg = document.querySelector(".swiper-lazy.swiper-lazy-loaded"); if (swiperBg) { if (window.innerWidth < 568) { swiperBg.style.backgroundImage = 'url("https://itsak.tech/DATA/hero-background-phone.webp")'; } else { swiperBg.style.backgroundImage = 'url("https://cdn.salla.sa/form-builder/7F28iY9SilFo9WLXiHhFYWF49BLWS1MDl5tx2tbx.png")'; } } } // Run on page load document.addEventListener("DOMContentLoaded", updateBackground); // Run on screen resize window.addEventListener("resize", updateBackground); // إنشاء الزر // إنشاء الزر const whatsappButton = document.createElement('a'); whatsappButton.href = 'https://api.whatsapp.com/send/?phone=966581852825&'; // ← غيّر الرقم لرقمك whatsappButton.target = '_blank'; whatsappButton.setAttribute('aria-label', 'تواصل عبر الواتساب'); // تصميم الزر whatsappButton.style.position = 'fixed'; if (window.innerWidth < 768) { whatsappButton.style.bottom = '90px'; // ← ارتفع شوي للأعلى } else { whatsappButton.style.bottom = '20px'; // ← الوضع الطبيعي }whatsappButton.style.right = '20px'; whatsappButton.style.width = '60px'; whatsappButton.style.height = '60px'; whatsappButton.style.backgroundColor = '#25D366'; whatsappButton.style.borderRadius = '100px'; whatsappButton.style.display = 'flex'; whatsappButton.style.justifyContent = 'center'; whatsappButton.style.alignItems = 'center'; whatsappButton.style.boxShadow = '0 4px 12px rgba(0, 0, 0, 0.3)'; whatsappButton.style.zIndex = '9999'; whatsappButton.style.cursor = 'pointer'; whatsappButton.style.transition = 'transform 0.3s ease'; whatsappButton.style.width = 'auto'; whatsappButton.style.padding = '0 16px'; // حركة عند المرور بالماوس whatsappButton.addEventListener('mouseenter', () => { whatsappButton.style.transform = 'scale(1.1)'; }); whatsappButton.addEventListener('mouseleave', () => { whatsappButton.style.transform = 'scale(1)'; }); // أيقونة SVG لواتساب // أيقونة SVG + نص "تواصل معنا" whatsappButton.innerHTML = ` تواصل معنا `; // إضافته للصفحة document.body.appendChild(whatsappButton);