اكتشفي خاتم السوليتير المثالي الخاص بك،من خلال التخصيصات المتاحه تلتقي الأناقة بالدقة. قومي بضبط التخصيصات للحصول على تصميمات خاصة، أو اكتشفي خيارات مماثلة لمجموعة من الخواتم الجذابة.
jQuery(document).ready(function($) {
var currencyToCountry = {
"SAR": "السعودية",
"BHD": "البحرين",
"KWD": "الكويت",
"QAR": "قطر",
"AED": "الإمارات",
"OMR": "عمان"
};
function updateActiveCurrencyButton() {
// Find the active currency
var activeCurrency = $('.wmc-currency.wmc-active').data('currency');
// Find the corresponding country name from the mapping
var countryName = currencyToCountry[activeCurrency];
$(".CountryNameSpan").text(countryName);
}
updateActiveCurrencyButton();
var countryToCurrency = {
"السعودية": "SAR", // Saudi Arabia
"البحرين": "BHD", // Bahrain
"الكويت": "KWD", // Kuwait
"قطر": "QAR", // Qatar
"الإمارات": "AED," // UAE
"عمان" :"OMR"
};
// Add click event listener to country buttons
$('.SwitchCountryButton').click(function() {
// Get the country name from the button's text
var countryName = $(this).text().trim();
console.log(countryName);
// Use the mapping to find the corresponding currency code
var currencyCode = countryToCurrency[countryName];
// Find the corresponding currency link and trigger a click
$('.wmc-currency-redirect').each(function() {
if ($(this).data('currency') === currencyCode) {
$(this).click(); // Programmatically trigger the click event
$(".CountryNameSpan").text(countryName);
return false; // Exit the loop
}
});
});
});
jQuery(document).ready(function($) {
jQuery(window).scroll(function() {
if ($(this).scrollTop() > 20) {
jQuery('#backToTop').fadeIn();
} else {
jQuery('#backToTop').fadeOut();
}
});
// When the user clicks on the button, scroll to the top of the document
jQuery('#backToTop').click(function() {
jQuery('html, body').animate({ scrollTop: 0 }, '300');
});
jQuery('.ripple').click(function(e) {
var rippleElement = jQuery('<span class="circle"></span>'),
button = jQuery(this),
size = Math.max(button.outerWidth(), button.outerHeight()),
x = e.pageX - button.offset().left - size / 2,
y = e.pageY - button.offset().top - size / 2;
rippleElement.css({
width: size,
height: size,
top: y + 'px',
left: x + 'px'
}).appendTo(button);
window.setTimeout(function() {
rippleElement.remove();
}, 600); // Match the duration of the animation
});
jQuery('.CarouselContainer').mouseout(function(event) {
// Reference to the current CarouselContainer
var $currentCarousel = jQuery(this);
// Ensure the mouse has actually left this carousel area
if (!jQuery(event.relatedTarget).closest('.CarouselContainer').length) {
// Find the index of the currently active slide within this CarouselContainer
var activeIndex = $currentCarousel.find('.ShopCarousel .swiper-slide-active').index();
// Remove classes to reset styles if needed, only within this CarouselContainer
$currentCarousel.find('.ShopCarousel .swiper-slide').removeClass('swiper-slide-active swiper-slide-next swiper-slide-prev');
// Add 'active' class to the first slide within this CarouselContainer
$currentCarousel.find('.ShopCarousel .swiper-slide:first-child').addClass('swiper-slide-active');
$currentCarousel.find('.ShopCarousel .swiper-slide').eq(1).addClass('swiper-slide-next');
// Trigger click on the "previous" button the number of times equal to the active slide index, only within this CarouselContainer
setTimeout(function(){
for (let i = 0; i < activeIndex; i++) {
$currentCarousel.find('.elementor-swiper-button-prev').trigger('click');
}
}, 500);
}
});
// Filters Behavior
jQuery(".FilterButton").click(function(){
jQuery('.FilterSubContainer').hide();
// Identify the container to show based on the clicked button's ID
var containerId = '';
switch(this.id) {
case 'GemFilter':
containerId = '#FiltersContainerGemstone';
break;
case 'CollectionFilter':
containerId = '#FiltersContainerCollection';
break;
case 'TypeFilter':
containerId = '#FiltersContainerMaterial';
break;
case 'PriceFilter':
containerId = '#FiltersContainerPrice';
break;
case 'GoldFilter':
containerId = '#FiltersContainerGold';
break;
// Default case to handle unexpected IDs
default:
console.log('No matching container for this button.');
return; // Exit the function if no match found
}
// Show the matched container
jQuery(containerId).css('display', 'flex').show();
jQuery(".FiltersContainer").css('display', 'flex').show();
});
jQuery(".ShopComponent").mouseenter(function() {
jQuery(".FiltersContainer").css("display", "none");
});
function checkAndHideAddToBag() {
$('.CarouselContainer').each(function() {
var $container = $(this);
if ($container.find('.MessageSA').length || $container.find('.MessageBAH').length) {
$container.find('.AddToBag').hide();
}
});
}
// Run the function initially
checkAndHideAddToBag();
// Use MutationObserver to detect changes in the DOM
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (mutation.addedNodes.length > 0) {
checkAndHideAddToBag();
}
});
});
// Configuration of the observer
var config = { childList: true, subtree: true };
// Target the container that will have new items added to it
var target = document.querySelector('.items-container');
if (target) {
observer.observe(target, config);
}
});
jQuery(document).ready(function($) {
// Check if the page is in Elementor editor mode
if (typeof elementorFrontend !== 'undefined' && elementorFrontend.isEditMode()) {
// Do nothing if we are in the editor
return;
}
function updateProductPosition() {
var visibleCount = 0;
$('.jet-woo-builder-product').each(function(index) {
// Set the position count
var position = index + 1; // index is zero-based, so add 1
// Check if the item is visible
if ($(this).closest('.jet-woo-builder-product').is(':visible')) {
visibleCount++;
}
});
// Update the span with the total number of visible items
var totalResults = $(".woocommerce-result-count").text().split(" ")[4];
$(".VisibleProducts").text("عرض 1 إلى " + visibleCount + " من " + totalResults + " نتيجة");
}
// Run the function initially
updateProductPosition();
// Use MutationObserver to detect changes in the DOM
var observer = new MutationObserver(function(mutations) {
observer.disconnect(); // Temporarily disconnect the observer
var shouldUpdate = false;
mutations.forEach(function(mutation) {
if (mutation.addedNodes.length > 0 || mutation.removedNodes.length > 0) {
shouldUpdate = true;
}
});
if (shouldUpdate) {
updateProductPosition();
}
observer.observe(target, config); // Reconnect the observer
});
// Configuration of the observer
var config = { childList: true, subtree: true };
// Target the container that will have new items added to it
var target = document.querySelector('.items-container');
if (target) {
observer.observe(target, config);
}
});
jQuery(document).ready(function($) {
// Listen for clicks on the div named 'CategoryDiv'
$('.CategoryDiv').on('click', function() {
// Find the first link (<a>) within the clicked div and get its href attribute
var url = $(this).find('a').attr('href');
// Check if the URL exists
if(url) {
// Redirect the browser to the URL
window.location.href = url;
}
});
});
jQuery(document).ready(function($) {
// Listen for clicks on the div named 'CategoryDiv'
$('.CategoryDiv').on('click', function() {
// Find the first link (<a>) within the clicked div and get its href attribute
var url = $(this).find('a').attr('href');
// Check if the URL exists
if(url) {
// Redirect the browser to the URL
window.location.href = url;
}
});
});
jQuery(document).ready(function($) {
// Listen for clicks on the div named 'CategoryDiv'
$('.CategoryDiv').on('click', function() {
// Find the first link (<a>) within the clicked div and get its href attribute
var url = $(this).find('a').attr('href');
// Check if the URL exists
if(url) {
// Redirect the browser to the URL
window.location.href = url;
}
});
});
jQuery(document).ready(function($) {
// Listen for clicks on the div named 'CategoryDiv'
$('.CategoryDiv').on('click', function() {
// Find the first link (<a>) within the clicked div and get its href attribute
var url = $(this).find('a').attr('href');
// Check if the URL exists
if(url) {
// Redirect the browser to the URL
window.location.href = url;
}
});
});
jQuery(document).ready(function() {
// Target all <img> and <a> elements on the site
jQuery('img, a').removeAttr('title');
});
// Function to add query string without reloading the page
jQuery(document).ready(function($) {
var currencyToCountry = {
"SAR": "السعودية",
"BHD": "البحرين",
"KWD": "الكويت",
"QAR": "قطر",
"AED": "الإمارات",
"OMR": "عمان"
};
function updateActiveCurrencyButton() {
// Remove bold class from all buttons first
$('.SwitchCountryButton').removeClass('ActiveBtn');
// Find the active currency
var activeCurrency = $('.wmc-currency.wmc-active').data('currency');
// Find the corresponding country name from the mapping
var countryName = currencyToCountry[activeCurrency];
$("#CountryNameSpan").text(countryName);
$('.CountryText').find('h2').each(function() {
// Get the current text of the h2 element
var currentText = $(this).text();
// Replace "[CountryName]" with "countryName" in the text
var newText = currentText.replace("[Country Name]", countryName);
// Set the new text back to the h2 element
$(this).text(newText);
});
// Loop through the buttons and add bold class to the matching button
$('.SwitchCountryButton').each(function() {
if ($(this).text().trim() === countryName) {
$(this).addClass('ActiveBtn');
}
});
}
updateActiveCurrencyButton();
var countryToCurrency = {
"السعودية": "SAR", // Saudi Arabia
"البحرين": "BHD", // Bahrain
"الكويت": "KWD", // Kuwait
"قطر": "QAR", // Qatar
"الإمارات": "AED",// UAE
"عمان" :"OMR"
};
$('.SwitchCountryButton').click(function() {
// Get the country name from the button's text
var countryName = $(this).text().trim();
// Use the mapping to find the corresponding currency code
var currencyCode = countryToCurrency[countryName];
// Find the corresponding currency link and trigger a click
$('.wmc-currency-redirect').each(function() {
if ($(this).data('currency') === currencyCode) {
$(this).click(); // Programmatically trigger the click event
$(".CountryMessage").text("نقوم بتحويلك إلى متجر");
$(".CountryNameSpan").text(countryName);
return false; // Exit the loop
}
});
});
});
var elementorFrontendConfig = {"environmentMode":{"edit":false,"wpPreview":false,"isScriptDebug":false},"i18n":{"shareOnFacebook":"\u0634\u0627\u0631\u0643 \u0639\u0644\u0649 \u0641\u064a\u0633\u0628\u0648\u0643","shareOnTwitter":"\u0634\u0627\u0631\u0643 \u0639\u0644\u0649 \u062a\u0648\u064a\u062a\u0631","pinIt":"\u062b\u0628\u062a\u0647\u0627 ","download":"\u062a\u062d\u0645\u064a\u0644","downloadImage":"\u062a\u0646\u0632\u064a\u0644 \u0627\u0644\u0635\u0648\u0631\u0629","fullscreen":"\u0639\u0631\u0636 \u0634\u0627\u0634\u0629 \u0643\u0627\u0645\u0644\u0629","zoom":"\u062a\u0643\u0628\u064a\u0631","share":"\u0645\u0634\u0627\u0631\u0643\u0629","playVideo":"\u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0641\u064a\u062f\u064a\u0648","previous":"\u0627\u0644\u0633\u0627\u0628\u0642","next":"\u0627\u0644\u062a\u0627\u0644\u064a","close":"\u0625\u063a\u0644\u0627\u0642","a11yCarouselPrevSlideMessage":"Previous slide","a11yCarouselNextSlideMessage":"Next slide","a11yCarouselFirstSlideMessage":"This is the first slide","a11yCarouselLastSlideMessage":"This is the last slide","a11yCarouselPaginationBulletMessage":"Go to slide"},"is_rtl":true,"breakpoints":{"xs":0,"sm":480,"md":768,"lg":1025,"xl":1440,"xxl":1600},"responsive":{"breakpoints":{"mobile":{"label":"Mobile Portrait","value":767,"default_value":767,"direction":"max","is_enabled":true},"mobile_extra":{"label":"Mobile Landscape","value":880,"default_value":880,"direction":"max","is_enabled":false},"tablet":{"label":"Tablet Portrait","value":1024,"default_value":1024,"direction":"max","is_enabled":true},"tablet_extra":{"label":"Tablet Landscape","value":1200,"default_value":1200,"direction":"max","is_enabled":false},"laptop":{"label":"\u062d\u0627\u0633\u0648\u0628 \u0645\u062d\u0645\u0648\u0644","value":1366,"default_value":1366,"direction":"max","is_enabled":false},"widescreen":{"label":"\u0627\u0644\u0634\u0627\u0634\u0629 \u0627\u0644\u0639\u0631\u064a\u0636\u0629","value":2400,"default_value":2400,"direction":"min","is_enabled":false}},"hasCustomBreakpoints":false},"version":"4.1.1","is_static":false,"experimentalFeatures":{"e_font_icon_svg":true,"container":true,"nested-elements":true,"global_classes_should_enforce_capabilities":true,"e_variables":true,"e_opt_in_v4_page":true,"e_components":true,"e_interactions":true,"e_widget_creation":true,"import-export-customization":true},"urls":{"assets":"https:\/\/stagingapp10963.cloudwayssites.com\/wp-content\/plugins\/elementor\/assets\/","ajaxurl":"https:\/\/stagingapp10963.cloudwayssites.com\/wp-admin\/admin-ajax.php","uploadUrl":"https:\/\/stagingapp10963.cloudwayssites.com\/wp-content\/uploads"},"nonces":{"floatingButtonsClickTracking":"4101cbf6df","atomicFormsSendForm":"10880664c7"},"swiperClass":"swiper","settings":{"editorPreferences":[]},"kit":{"active_breakpoints":["viewport_mobile","viewport_tablet"],"lightbox_title_src":"title","lightbox_description_src":"description","woocommerce_notices_elements":[]},"post":{"id":0,"title":"\u0623\u0633\u0631\u0627\u0631 - Kooheji Jewellery","excerpt":""}};
//# sourceURL=elementor-frontend-js-before
var jetBlocksData = {"recaptchaConfig":{"enable":"false","site_key":"","secret_key":""}};
var JetHamburgerPanelSettings = {"ajaxurl":"https://stagingapp10963.cloudwayssites.com/wp-admin/admin-ajax.php","isMobile":"false","templateApiUrl":"https://stagingapp10963.cloudwayssites.com/wp-json/jet-blocks-api/v1/elementor-template","devMode":"false","restNonce":"a38df58bf5"};
//# sourceURL=jet-blocks-js-extra
var jetElements = {"ajaxUrl":"https://stagingapp10963.cloudwayssites.com/wp-admin/admin-ajax.php","isMobile":"false","templateApiUrl":"https://stagingapp10963.cloudwayssites.com/wp-json/jet-elements-api/v1/elementor-template","devMode":"false","messages":{"invalidMail":"Please specify a valid e-mail"}};
//# sourceURL=jet-elements-js-extra