X7ROOT File Manager
Current Path:
/home/notabjze/hourglass.life/wp-content/themes/elessi-theme/assets/js
home
/
notabjze
/
hourglass.life
/
wp-content
/
themes
/
elessi-theme
/
assets
/
js
/
ðŸ“
..
📄
coming-soon.js
(1.68 KB)
📄
countdown.js
(65.6 KB)
📄
dokan-store.js
(19.84 KB)
📄
ext-mini-cart.js
(17.16 KB)
📄
functions.js
(63.13 KB)
📄
handlebars.js
(47.41 KB)
📄
jquery.confetti.js
(9.16 KB)
📄
jquery.cookie.js
(3.72 KB)
📄
jquery.easyzoom.js
(13.63 KB)
📄
jquery.magnific-popup.js
(39.27 KB)
📄
jquery.stellar.js
(30.27 KB)
📄
js-large.js
(26.33 KB)
📄
main.js
(96.22 KB)
ðŸ“
min
📄
nasa-quickview-sp-adsw.js
(2.15 KB)
📄
nasa-quickview.js
(34.74 KB)
📄
owl.carousel.js
(91.25 KB)
📄
single-product.js
(78.34 KB)
📄
sp-multi-currencies.js
(4.11 KB)
📄
store-ajax.js
(66.03 KB)
📄
typeahead.bundle.js
(99.59 KB)
📄
woo-pages.js
(30.7 KB)
📄
wow.js
(9.15 KB)
Editing: sp-multi-currencies.js
/** * Document Ready !!! */ jQuery(document).ready(function($) { "use strict"; /** * Multi Currencies */ if ($('.nasa-select-currencies .nasa-currency-switcher').length) { /** * For WOOCS - WooCommerce Currency Switcher */ if ($('.woocs_auto_switcher').length) { var _woocs = $('.woocs_auto_switcher'); var _clone = '<ul class="nasa-woocs-switcher crr-switcher">'; var _i = 0; $(_woocs).find('.woocs_auto_switcher_link').each(function() { var _this = $(this); $(_this).attr('data-index', _i); _i++; if (!$(_this).hasClass('woocs_curr_curr')) { var _item = $(_this).parents('li').clone(); $(_item).find('a').removeClass('woocs_auto_switcher_link'); $(_item).find('a').addClass('nasa-woocs-switcher-link'); _clone += '<li>' + $(_item).html() + '</li>'; } }); _clone += '</ul>'; var _cur_woocs = $(_woocs).find('.woocs_curr_curr').clone(); $(_cur_woocs).removeClass('woocs_auto_switcher_link'); $(_cur_woocs).removeClass('woocs_curr_curr'); $(_cur_woocs).addClass('nasa-crc nasa-woocs-crc'); $('.nasa-select-currencies').prepend(_cur_woocs); $('.nasa-currency-switcher').append(_clone); $('.nasa-currency-switcher').removeClass('hidden-tag'); $('.nasa-select-currencies').removeClass('hidden-tag'); } /** * For CURCY - Multi Currency for WooCommerce */ if ($('.wmc-list-currencies').length) { var _wmc = $('.wmc-list-currencies'); var _clone = '<ul class="nasa-wmc-switcher crr-switcher">'; var _active = ''; $(_wmc).find('.wmc-currency').each(function() { var _this = $(this); var _item = $(_this).clone(); if (!$(_this).hasClass('wmc-active')) { $(_item).find('a').prepend($(_item).find('.wmc-currency-symbol')); _clone += '<li>' + $(_item).html() + '</li>'; } else { $(_item).find('.wmc-active-title').prepend($(_item).find('.wmc-currency-symbol')); _active = '<a href="javascript:void(0);" rel="nofollow" class="wmc-active">' + $(_item).find('.wmc-active-title').html() + '</a>'; } }); _clone += '</ul>'; $('.nasa-select-currencies').prepend(_active); $('.nasa-currency-switcher').append(_clone); $('.nasa-currency-switcher').removeClass('hidden-tag'); $('.nasa-select-currencies').removeClass('hidden-tag'); } } /** * Trigger For WOOCS - WooCommerce Currency Switcher */ $('body').on('click', '.nasa-woocs-switcher-link', function(e) { var _index = $(this).attr('data-index'); if ($('.woocs_auto_switcher_link[data-index="' + _index + '"]').length) { $('.woocs_auto_switcher_link[data-index="' + _index + '"]').trigger('click'); } }); /** * Render for Mobile menu */ $('body').on('nasa_after_render_currencies_switcher', function(e, _currency) { if ($(_currency).find('.nasa-currency-switcher').length) { $(_currency).addClass('menu-item-has-children root-item li_accordion'); $(_currency).find('.nasa-currency-switcher').addClass('nav-dropdown'); } e.preventDefault(); }); /** * After loaded ajax .nasa-currency-switcher */ var _ns_spmtcrc = ''; $('body').on('nasa_before_load_ajax', function() { if ($('.nasa-select-currencies').length) { var _crc = $('.nasa-select-currencies').clone(); _ns_spmtcrc = $(_crc).html(); } }); $('body').on('nasa_after_loaded_ajax_complete', function() { if ($('.nasa-select-currencies').length) { $('.nasa-select-currencies').html(_ns_spmtcrc); $('.nasa-select-currencies').removeClass('hidden-tag'); } _ns_spmtcrc = ''; }); $('body').on('click', 'a[data-currency]', function() { if (typeof _popstate_reload !== 'undefined') { _popstate_reload = false; } }); });
Upload File
Create Folder