// عالم Hanaya const link1 = document.querySelector('.main-menu a[aria-label="عالم Hanaya"]'); link1.innerHTML = ''; const arabicSpan1 = document.createElement('span'); arabicSpan1.textContent = 'عالم '; arabicSpan1.setAttribute('style', 'font-family: JF !important;'); const englishSpan1 = document.createElement('span'); englishSpan1.textContent = 'Hanaya'; englishSpan1.setAttribute('style', 'font-family: BISN !important;'); link1.appendChild(arabicSpan1); link1.appendChild(document.createTextNode('\u00A0')); link1.appendChild(englishSpan1); // بوتيك hanaya const link2 = document.querySelector('.main-menu a[aria-label="بوتيك Hanaya"]'); link2.innerHTML = ''; const arabicSpan2 = document.createElement('span'); arabicSpan2.textContent = 'بوتيك '; arabicSpan2.setAttribute('style', 'font-family: JF !important;'); const englishSpan2 = document.createElement('span'); englishSpan2.textContent = 'Hanaya'; englishSpan2.setAttribute('style', 'font-family: BISN !important;'); link2.appendChild(arabicSpan2); link2.appendChild(document.createTextNode('\u00A0')); link2.appendChild(englishSpan2); // مجموعة bonds const link3 = document.querySelector('.sub-menu a[aria-label="مجموعة Bonds"]'); link3.innerHTML = ''; const arabicSpan3 = document.createElement('span'); arabicSpan3.textContent = 'مجموعة '; arabicSpan3.setAttribute('style', 'font-family: JF !important;'); const englishSpan3 = document.createElement('span'); englishSpan3.textContent = 'Bonds'; englishSpan3.setAttribute('style', 'font-family: BISN !important;'); link3.appendChild(arabicSpan3); link3.appendChild(document.createTextNode('\u00A0')); link3.appendChild(englishSpan3); document.addEventListener('DOMContentLoaded', function() { const el = document.querySelector('.topnav-link-item:first-child span.sicon-phone'); if (el) el.classList.replace('sicon-phone', 'sicon-whatsapp'); }); // document.addEventListener('DOMContentLoaded', function() { // // Create the tab nav item // const navList = document.querySelector('body.product-single:has(.product-65751816) .more-info-tabs__nav.nav'); // const specTab = document.createElement('li'); // specTab.className = 'more-info-tabs__nav-item'; // specTab.innerHTML = ''; // navList.prepend(specTab); // // Create the tab pane with the table // const tabContent = document.querySelector('.more-info-tabs__content'); // const specPane = document.createElement('div'); // specPane.className = 'more-tab-container'; // specPane.innerHTML = ` // //
// //
// // // // // // // // // // // // // // // // // // // // // // // //
رقموزن الذهبالذهبلون الماسنقاء الماسشكل الماسوزن الماس
XYZ-24422-34535-234354شاملمحدودأساسيأساسيأساسيأساسي
//
//
// `; // tabContent.prepend(specPane); // // Tab switching logic // document.querySelectorAll('.more-info-tabs__nav-link').forEach(link => { // link.addEventListener('click', function () { // const id = this.dataset.id; // // Deactivate all // document.querySelectorAll('.more-info-tabs__nav-link').forEach(l => l.classList.remove('active')); // document.querySelectorAll('.tab-pane').forEach(p => { p.classList.remove('show'); p.classList.remove('active'); }); // // Activate matching // document.querySelectorAll(`[data-id="${id}"]`).forEach(l => l.classList.add('active')); // const pane = document.getElementById(id); // if (pane) { pane.classList.add('show', 'active'); } // }); // }); // // Show specs tab by default // specTab.querySelector('.more-info-tabs__nav-link').click(); // }); document.addEventListener("DOMContentLoaded", function () { const navList = document.querySelector( "body.product-single .more-info-tabs__nav.nav", ); const specTab = document.createElement("li"); specTab.className = "more-info-tabs__nav-item"; specTab.innerHTML = ''; navList.prepend(specTab); const tabContent = document.querySelector(".more-info-tabs__content"); const specPane = document.createElement("div"); specPane.className = "more-tab-container"; specPane.innerHTML = `
رقم الصنف الذهب الماس
Pe-18Y-L6D-BOA-1 العيار
(قيراط)
اللون الوزن
(غرام)
النوع النقاء اللون القطع الوزن
(قيراط)
18 أصفر 8.3 LGD VSS IJ دائري 0.35
`; tabContent.prepend(specPane); document.querySelectorAll(".more-info-tabs__nav-link").forEach((link) => { link.addEventListener("click", function () { const id = this.dataset.id; document .querySelectorAll(".more-info-tabs__nav-link") .forEach((l) => l.classList.remove("active")); document.querySelectorAll(".tab-pane").forEach((p) => { p.classList.remove("show"); p.classList.remove("active"); }); document .querySelectorAll(`[data-id="${id}"]`) .forEach((l) => l.classList.add("active")); const pane = document.getElementById(id); if (pane) { pane.classList.add("show", "active"); } }); }); specTab.querySelector(".more-info-tabs__nav-link").click(); });