1;(function ($) { 2 3 "use strict"; 4 5 $(document).ready(function () { 6 $('.single_variation_wrap').addClass('clearfix'); 7 $('.woocommerce-variation-add-to-cart').addClass('clearfix'); 8 9 $('.cart-total-wrap').on('click', function () { 10 $('.widget-cart-sidebar').toggleClass('open'); 11 $(this).toggleClass('cart-open'); 12 $('.site-overlay').toggleClass('open'); 13 }); 14 15 $('.site-overlay').on('click', function () { 16 $(this).removeClass('open'); 17 $(this).parents('#page').find('.widget-cart-sidebar').removeClass('open'); 18 }); 19 20 $('.woocommerce-tab-heading').on('click', function () { 21 $(this).toggleClass('open'); 22 $(this).parent().find('.woocommerce-tab-content').slideToggle(''); 23 }); 24 25 $('.site-menu-right .h-btn-cart, .mobile-menu-cart .h-btn-cart').on('click', function (e) { 26 e.preventDefault(); 27 $(this).parents('#ct-header-wrap').find('.widget_shopping_cart').toggleClass('open'); 28 $('.ct-hidden-sidebar').removeClass('open'); 29 $('.ct-search-popup').removeClass('open'); 30 }); 31
32 $('.woocommerce-add-to-cart a.button.product_type_grouped:not(".no-animate")').append( '<i class="caseicon-link4"></i>' ); 33 34 $('.woocommerce-add-to-cart a.button').on('click', function () { 35 $(this).parents('.woocommerce-product-inner').addClass('cart-added'); 36 }); 37 38 $('.woocommerce-archive-layout .layout-grid').on('click', function () { 39 $(this).addClass('active'); 40 $(this).parent().find('.layout-list').removeClass('active'); 41 $(this).parents('.site-main').find('ul.products').addClass('ct-products-grid').removeClass('ct-products-list'); 42 $(this).parents('.pxl-content-area').find('ul.products').removeAttr('class').addClass($(this).attr('data-cls')); 43 }); 44 45 $('.woocommerce-archive-layout .layout-list').on('click', function () { 46 $(this).addClass('active'); 47 $(this).parent().find('.layout-grid').removeClass('active'); 48 $(this).parents('.site-main').find('ul.products').addClass('ct-products-list').removeClass('ct-products-grid'); 49 $(this).parents('.pxl-content-area').find('ul.products').removeAttr('class').addClass($(this).attr('data-cls')); 50 }); 51 52 $('.woocommerce-archive-layout .layout-list.active').parents('.site-main').find('ul.products').addClass('ct-products-list').removeClass('ct-products-grid'); 53 54 setTimeout(function () { 55 $('.ct-grid .product_type_variable, .ct-slick-slider .product_type_variable').removeAttr('data-product_id'); 56 $('.ct-product-carousel6.woocommerce .woocommerce-product-inner .woocommerce-a
56dd-to--cart .button').append( '<i class="flaticon-shopping-cart-1"></i>' ); 57 $('.ct-product-carousel9.woocommerce .woocommerce-product-inner .woocommerce-add-to--cart .button').append( '<i class="flaticon-shopping-cart-1"></i>' ); 58 }, 300); 59 60 $(".woocommerce .products").on("click", ".quantity input", function() { 61 return false; 62 }); 63 $(".woocommerce .products").on("change input", ".quantity .qty", function() { 64 var add_to_cart_button = $(this).parents( ".product" ).find(".add_to_cart_button"); 65 add_to_cart_button.attr('data-quantity', $(this).val()); 66 add_to_cart_button.attr("href", "?add-to-cart=" + add_to_cart_button.attr("data-product_id") + "&quantity=" + $(this).val()); 67 }); 68 $('.flex-viewport').parents('.woocommerce-gallery-inner').addClass('flex-slider-active'); 69 70 /* Single Product - Sidebar -- No Form */ 71 $('.woocommerce-summary-inner').each(function() { 72 if ($(this).find('.variations_form').length === 0) { 73 var sidebar = $('.woocommerce-summary-inner'); 74 if ( $('.woocommerce-summary--entry').length > 0) { 75 sidebar.removeAttr('class').addClass('woocommerce-summary-inner col-xl-4 col-lg-4 col-md-6 col-12'); 76 } 77 78 var sidebar = $('.woocommerce-summary--entry'); 79 if ( $('.woocommerce-summary--entry').length > 0) { 80 sidebar.removeClass('row'); 81 } 82 83 var sidebar = $('.woocommerce-summary-content'); 84 if ( $('.woocommerce-summary-content').length > 0) { 85 sidebar.removeAttr('class').addClass('woocommerce-summary-content'); 86 } 87 88 var sidebar = $('.woocommerce-sg-sidebar'); 89 if (sidebar.length > 0) { 90 sidebar.removeAttr('class').addClass('woocommerce-sg-sidebar col-xl-3 col-lg-3 col-md-12 col-12'); 91 } 92 } 93 }); 94 95 96 /* Add Placeholder Review Form */ 97 var $text_name = $('.single-product #review_form .comment-form-author label').text(); 98 $('.single-product #review_form .comment-form-author input').each(function (ev) { 99 if (!$(this).val()) { 100 $(this).attr("placeholder", $text_name); 101 } 102 }); 103 var $text_email = $('.single-product #review_form .comment-form-email label').text(); 104 $('.single-product #review_form .comment-form-email input').each(function (ev) { 105 if (!$(this).val()) { 106 $(this).attr("placeholder", $text_email); 107 } 108 }); 109 var $text_comment = $('.single-product #review_form .comment-form-comment label').text(); 110 $('.single-product #review_form .comment-form-comment textarea').each(function (ev) { 111 if (!$(this).val()) { 112 $(this).attr("placeholder", $text_comment); 113 } 114 }); 115 116 $('.pxl-item--attr .pxl-button--info').on('click', function () { 117 $(this).toggleClass('active'); 118 }); 119 120 /* Checkout Placeholder */ 121 $('.woocommerce-checkout #billing_first_name').attr("placeholder", "Fast Name"); 122 $('.woocommerce-checkout #billing_last_name').attr("placeholder", "Last Name"); 123 $('.woocommerce-checkout #billing_company').attr("placeholder", "Company Name"); 124 $('.woocommerce-checkout #billing_company').attr("placeholder", "Company"); 125 $('.woocommerce-checkout #billing_city').attr("placeholder", "Town / City"); 126 $('.woocommerce-checkout #billing_postcode').attr("placeholder", "ZIP Code"); 127 $('.woocommerce-checkout #billing_phone').attr("placeholder", "Phone Number"); 128 $('.woocommerce-checkout #billing_email').attr("placeholder", "Email Address"); 129 $('#customer_login #username').attr("placeholder", "Username or email address"); 130 $('#customer_login #password').attr("placeholder", "Password"); 131 $('#customer_login #reg_email').attr("placeholder", "Email address"); 132 $('#customer_login #reg_username').attr("placeholder", "Username"); 133 $('#customer_login #reg_password').attr("placeholder", "Password"); 134 $('.lost_reset_password #user_login').attr("placeholder", "Username or email"); 135 136 });
137 138})(jQuery); 139 140 141jQuery( document ).on( 'qv_loader_stop', function () { 142 jQuery( this ).ready( function ( $ ) { 143 $('#yith-quick-view-modal .quantity').append('<span class="quantity-icon quantity-down pxl-icon--minus"></span><span class="quantity-icon quantity-up pxl-icon--plus"></span>'); 144 $('#yith-quick-view-modal .quantity-up').on('click', function () { 145 $(this).parents('.quantity').find('input[type="number"]').get(0).stepUp(); 146 }); 147 $('#yith-quick-view-modal .quantity-down').on('click', function () { 148 $(this).parents('.quantity').find('input[type="number"]').get(0).stepDown(); 149 }); 150 } ); 151} ); 152 153document.addEventListener("DOMContentLoaded", function() { 154 var targetNode = document.querySelector('.woocommerce-product-gallery'); 155 156 if (targetNode) { 157 var observer = new MutationObserver(function(mutationsList, observer) { 158 var nav = document.querySelector('.flex-control-nav'); 159 var target = document.querySelector('.woocommerce-summary-inner'); 160 161 if (nav && target) { 162 target.appendChild(nav); 163 observer.disconnect(); 164 } 165 }); 166 167 observer.observe(targetNode, { childList: true, subtree: true }); 168 } 169}); 170 171 172
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.