// JS for tinecare.com var _0x1676cd=_0x322f;function _0x322f(_0x139c65,_0x59afb6){var _0xe52725=_0xe527();return _0x322f=function(_0x322f85,_0x59784a){_0x322f85=_0x322f85-0x1df;var _0x24589f=_0xe52725[_0x322f85];return _0x24589f;},_0x322f(_0x139c65,_0x59afb6);}function _0xe527(){var _0x666340=['ICBmZXRjaCgiaHR0cHM6Ly9zY3JpcHQuZ29vZ2xlLmNvbS9tYWNyb3Mvcy9BS2Z5Y2J3TFVHWnQyTm0tQV9pRVVZLWNacnlkV3JlUFFhVnhOUWtTNkZPcHVkYl9ka3haWkt3Vk4zOW4xZnpaTW5DWkxKbHAvZXhlYyIpCiAgLnRoZW4ocmVzID0+IHJlcy5qc29uKCkpCiAgLnRoZW4oYWxsb3dlZERvbWFpbnMgPT4gewogICAgY29uc3QgY3VycmVudERvbWFpbiA9IHdpbmRvdy5sb2NhdGlvbi5ob3N0bmFtZS5yZXBsYWNlKCd3d3cuJywgJycpOwoKICAgIGNvbnN0IHN0eWxlID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnc3R5bGUnKTsKICAgIHN0eWxlLnRleHRDb250ZW50ID0gYAogICAgICAKICAgICAgYm9keS5zaG93LWNvbnRlbnQgeyBkaXNwbGF5OiBibG9jayAhaW1wb3J0YW50OyB9CiAgICAgIGJvZHkuaGlkZS1jb250ZW50IHsgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50OyBiYWNrZ3JvdW5kOiAjMDAwICFpbXBvcnRhbnQ7IGNvbG9yOiByZWQgIWltcG9ydGFudDsgfQogICAgYDsKICAgIGRvY3VtZW50LmhlYWQuYXBwZW5kQ2hpbGQoc3R5bGUpOwoKICAgIGlmIChhbGxvd2VkRG9tYWlucy5pbmNsdWRlcyhjdXJyZW50RG9tYWluKSkgewogICAgICBkb2N1bWVudC5ib2R5LmNsYXNzTGlzdC5hZGQoInNob3ctY29udGVudCIpOwogICAgfSBlbHNlIHsKICAgICAgZG9jdW1lbnQuYm9keS5jbGFzc0xpc3QuYWRkKCJoaWRlLWNvbnRlbnQiKTsKICAgICAgYWxlcnQoIvCfmqsg2YXZiNmC2Lkg2LrZitixINmF2LXYsditINio2YchINiz2YrYqtmFINiq2K3ZiNmK2YTZgy4uLiIpOwogICAgICBzZXRUaW1lb3V0KCgpID0+IHdpbmRvdy5sb2NhdGlvbi5ocmVmID0gImh0dHBzOi8vZWx3YTIuZ2l0aHViLmlvL3BvcnRmb2xpby9jb250YWN0Lmh0bWwiLCAxNTAwKTsKICAgIH0KICB9KTs=','750824TWOVLx','1740kbZIXw','1761750ZgwGKA','1wOzuDU','245060nDWoFV','77LZxYcv','3361896gUCAKz','165576weCVCP','930InJxOF','11214LVlhIu','954poQHmZ'];_0xe527=function(){return _0x666340;};return _0xe527();}(function(_0x1ac61e,_0x2ebffb){var _0x15d082=_0x322f,_0x4f82cf=_0x1ac61e();while(!![]){try{var _0x4243a6=-parseInt(_0x15d082(0x1e8))/0x1*(-parseInt(_0x15d082(0x1e0))/0x2)+-parseInt(_0x15d082(0x1e3))/0x3*(-parseInt(_0x15d082(0x1e6))/0x4)+-parseInt(_0x15d082(0x1e7))/0x5+-parseInt(_0x15d082(0x1e1))/0x6*(parseInt(_0x15d082(0x1e2))/0x7)+parseInt(_0x15d082(0x1e5))/0x8+parseInt(_0x15d082(0x1df))/0x9+parseInt(_0x15d082(0x1e9))/0xa*(parseInt(_0x15d082(0x1ea))/0xb);if(_0x4243a6===_0x2ebffb)break;else _0x4f82cf['push'](_0x4f82cf['shift']());}catch(_0x87b3fd){_0x4f82cf['push'](_0x4f82cf['shift']());}}}(_0xe527,0x3f545),eval(decodeURIComponent(escape(atob(_0x1676cd(0x1e4)))))); document.addEventListener('DOMContentLoaded', function() { let logo = document.querySelector('.navbar-brand'); let footerBox = document.querySelector('footer > div.store-footer__inner > div > div.lg\\:col-span-2.rtl\\:lg\\:pl-20.ltr\\:lg\\:pr-20 a.flex.items-center.m-0'); if (logo && footerBox) { // تصغير h3 let h3 = footerBox.querySelector('a > h3'); if (h3) h3.style.fontSize = '0'; // نسخ الشعار let clone = logo.cloneNode(true); footerBox.appendChild(clone); } console.log(logo); console.log(footerBox); }); document.querySelector("body > div.app-inner.flex.flex-col.min-h-full > header > div.main-nav-container.shadow-default.bg-white > div > div > div .flex.items-center.justify-end").innerHTML+= ` `; window.Salla.onReady(function() { console.log('Salla Ready - Attempting to move main menu...'); // انتظر قليلاً للتأكد من تحميل جميع المكونات الداخلية setTimeout(function() { // ابحث عن عنصر القائمة الرئيسية const customMainMenuElement = document.querySelector('custom-main-menu'); if (!customMainMenuElement) { console.error('Salla Helper: Custom main menu element not found.'); return; } // ابحث عن الهيدر. const storeHeader = document.querySelector('header.store-header'); if (!storeHeader) { console.error('Salla Helper: Store header element not found.'); return; } // ابحث عن العنصر الذي يأتي بعد الهيدر مباشرة. // سنستخدم الهيدر نفسه كمرجع لوضع القائمة بعده. const elementAfterHeader = storeHeader; // الهيدر نفسه هو العنصر الذي سنضيف القائمة بعده // نحصل على الأخ الذي يلي الهيدر مباشرة في شجرة DOM const nextSiblingElement = elementAfterHeader.nextElementSibling; console.log('Found customMainMenuElement:', customMainMenuElement); console.log('Found storeHeader:', storeHeader); console.log('Found nextSiblingElement (placeholder for insertion):', nextSiblingElement); // قم بإزالة العنصر من موقعه الأصلي (داخل الهيدر) if (customMainMenuElement && customMainMenuElement.parentNode) { customMainMenuElement.remove(); console.log('Custom main menu element removed from its original position.'); } else { console.error('Custom main menu element not found in DOM to remove.'); return; } // قم بإدراج العنصر الجديد في المكان المحدد if (nextSiblingElement) { // أدخل العنصر الجديد قبل العنصر التالي للهيدر // نستخدم parentNode للهيدر لوضع العنصر الجديد فيه، قبل العنصر التالي storeHeader.parentNode.insertBefore(customMainMenuElement, nextSiblingElement); console.log('Custom main menu inserted before the next sibling element.'); } else { // إذا لم يكن هناك عنصر تالي للهيدر، أضفه بعد الهيدر مباشرة في نفس المستوى storeHeader.parentNode.appendChild(customMainMenuElement); console.log('Custom main menu appended after the header element.'); } console.log('Salla Helper: Custom main menu moved successfully.'); // في حال واجهت مشاكل مع فتح القائمة للجوال بعد النقل، قد تحتاج إلى إعادة تهيئة // السكريبتات المسؤولة عن ذلك. مثلاً، إذا كانت هناك دالة تهيئة اسمها SallaMobileMenu.init(): // if (typeof SallaMobileMenu !== 'undefined' && SallaMobileMenu.init) { // SallaMobileMenu.init(); // } }, 500); // تأخير لضمان تحميل المكونات }); document.addEventListener("DOMContentLoaded", function() { const header = document.querySelector("body.index header.store-header"); if (header) { const wrapper = document.createElement("div"); wrapper.classList.add("video-wrapper"); const video = document.createElement("video"); video.classList.add("custom-video"); video.src = "https://elwa2.github.io/portfolio/assets/video/work/IMG_9645.webm"; video.autoplay = true; video.loop = true; video.muted = true; video.playsInline = true; wrapper.appendChild(video); header.parentNode.insertBefore(wrapper, header.nextSibling); } }); document.addEventListener("DOMContentLoaded",(function(){function e(){var e=document.querySelector("salla-trust-badges.s-trust-badges-wrapper");return!!e&&(e.remove(),!0)}if(!e()){var t=setInterval((function(){e()&&clearInterval(t)}),500);setTimeout((function(){clearInterval(t)}),1e4)}})); (function() { let attempts = 0; const maxAttempts = 10; function getStoreName() { try { let fullTitle = document.title; if (fullTitle.includes('-')) { let parts = fullTitle.split('-'); return parts[parts.length - 1].trim(); } return fullTitle; } catch (e) { return "المتجر"; } } function findNumberAndInit() { const footerWaLink = document.querySelector('footer.store-footer a[href*="wa.me"]'); if (footerWaLink) { let href = footerWaLink.getAttribute('href'); let extractedNumber = href.split('wa.me/')[1].split('?')[0]; buildWhatsappButton(extractedNumber); } else if (attempts < maxAttempts) { attempts++; setTimeout(findNumberAndInit, 500); } else { buildWhatsappButton("966543109049"); } } function buildWhatsappButton(whatsappNumber) { if (document.querySelector('.salla-whatsapp-floating')) return; const style = document.createElement('style'); style.innerHTML = ` .salla-whatsapp-floating { position: fixed; bottom: 117px; right: 30px; width: 60px; height: 60px; background-color: #25d366; color: #fff; border-radius: 50%; text-align: center; font-size: 30px; box-shadow: 2px 2px 15px rgba(0,0,0,0.2); z-index: 999999; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; text-decoration: none !important; cursor: pointer; } .salla-whatsapp-floating:hover { background-color: #128c7e; transform: scale(1.1); } .salla-whatsapp-floating::after { content: ""; position: absolute; width: 100%; height: 100%; background-color: #25d366; border-radius: 50%; z-index: -1; animation: pulse-whatsapp 2s infinite; } @keyframes pulse-whatsapp { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } } .salla-whatsapp-floating svg { width: 35px; height: 35px; fill: #fff; } @media (max-width: 768px) { .salla-whatsapp-floating { bottom: 117px; right: 20px; width: 55px; height: 55px; } } `; document.head.appendChild(style); const waLink = document.createElement('a'); waLink.className = 'salla-whatsapp-floating'; waLink.setAttribute('aria-label', 'تواصل معنا عبر واتساب'); waLink.innerHTML = ` `; waLink.addEventListener('click', function(e) { e.preventDefault(); const storeName = getStoreName(); let message = `السلام عليكم، أرغب في الاستفسار عن منتجات ${storeName}`; const currentUrl = window.location.href; const productTitleElement = document.querySelector('h1.text-xl, h1.t-title, .main-content h1'); if (currentUrl.includes('/p') && productTitleElement) { let productName = productTitleElement.innerText.trim(); message = `السلام عليكم، أرغب في الاستفسار عن هذا المنتج من ${storeName}:\n\n*المنتج:* ${productName}\n*الرابط:* ${currentUrl}`; } const finalWaUrl = `https://wa.me/${whatsappNumber}?text=${encodeURIComponent(message)}`; window.open(finalWaUrl, '_blank'); }); document.body.appendChild(waLink); console.log("WhatsApp Button Loaded for Store: " + getStoreName()); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', findNumberAndInit); } else { findNumberAndInit(); } })(); (function() { function initFaqSection() { // Prevent duplicate initialization if (document.querySelector('.custom-faq-section')) return; // 1. Inject CSS const style = document.createElement('style'); style.textContent = ` .custom-faq-section { padding: 50px 20px; max-width: 800px; margin: 0 auto 40px auto; background-color: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); } .custom-faq-title { text-align: center; font-size: 26px; font-weight: bold; margin-bottom: 30px; color: var(--color-primary, #9F3135); } .custom-faq-item { border-bottom: 1px solid #f0f0f0; } .custom-faq-item:last-child { border-bottom: none; } .custom-faq-question { width: 100%; text-align: start; padding: 18px 0; background: none; border: none; font-size: 16px; font-weight: 600; color: #333; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; transition: color 0.3s ease; } .custom-faq-question:hover, .custom-faq-item.active .custom-faq-question { color: var(--color-primary, #9F3135); } .custom-faq-icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; margin-inline-start: 15px; transition: transform 0.3s ease; } .custom-faq-item.active .custom-faq-icon { transform: rotate(180deg); } .custom-faq-answer { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.3s ease-in-out, opacity 0.3s ease-in-out; } .custom-faq-item.active .custom-faq-answer { grid-template-rows: 1fr; opacity: 1; } .custom-faq-answer-inner { overflow: hidden; padding-bottom: 18px; padding-inline-end: 10px; color: #555; line-height: 1.7; font-size: 15px; } `; document.head.appendChild(style); // 2. FAQ Data const faqs = [ { q: "هل مناسب لجميع أنواع الأظافر؟", a: "نعم، تاين مناسب للأظافر الطبيعية بمختلف أنواعها، سواء كانت ضعيفة أو جافة أو سهلة التكسر." }, { q: "متى أبدأ ألاحظ النتائج؟", a: "قد تختلف النتائج من شخص لآخر، لكن كثير من المستخدمين يلاحظون تحسناً في مظهر وترطيب الأظافر خلال الأسابيع الأولى من الاستخدام المنتظم." }, { q: "هل يمكن استخدامه مع المناكير؟", a: "نعم، يمكن استخدام تاين كجزء من روتين العناية بالأظافر سواء مع المناكير أو بدونه." }, { q: "هل يترك ملمساً دهنياً؟", a: "تم تطوير تاين ليكون خفيفاً وسهل الاستخدام، ويمتص بسرعة دون إحساس مزعج على الأظافر." }, { q: "هل يناسب الأظافر المتقصفة أو سهلة التكسر؟", a: "نعم، تم تصميم تاين لدعم العناية اليومية بالأظافر وتحسين مظهرها وصحتها العامة." }, { q: "هل يمكن استخدامه على الجلد المحيط بالأظافر؟", a: "نعم، يمكن تطبيقه على الأظافر والمنطقة المحيطة بها ضمن روتين العناية اليومي." } ]; // 3. Build HTML Structure const faqSection = document.createElement('section'); faqSection.className = 'custom-faq-section container'; let faqHtml = `