1;(function ($) { 2 3 "use strict"; 4 5 $(document).ready(function () { 6 7 8 $('.single_variation_wrap').addClass('clearfix'); 9 $('.woocommerce-variation-add-to-cart').addClass('clearfix'); 10 11 $('.cart-total-wrap').on('click', function () { 12 $('.widget-cart-sidebar').toggleClass('open'); 13 $(this).toggleClass('cart-open'); 14 $('.site-overlay').toggleClass('open'); 15 }); 16 17 $('.site-overlay').on('click', function () { 18 $(this).removeClass('open'); 19 $(this).parents('#page').find('.widget-cart-sidebar').removeClass('open'); 20 }); 21 22 $('.woocommerce-tab-heading').on('click', function () { 23 $(this).toggleClass('open'); 24 $(this).parent().find('.woocommerce-tab-content').slideToggle(''); 25 }); 26 27 $('.site-menu-right .h-btn-cart, .mobile-menu-cart .h-btn-cart').on('click', function (e) { 28 e.preventDefault(); 29 $(this).parents('#ct-header-wrap').find('.widget_shopping_cart').toggleClass('open'); 30 $('.ct-hidden-sidebar').removeClass('open'); 31 $('.ct-search-popup').removeClass('open'); 32 }); 33 34 $('.woocommerce-archive-layout .layout-grid').on('click', function () { 35 $(this).addClass('active'); 36 $(this).parent().find('.layout-list').removeClass('active'); 37 $(this).parents('.site-main').find('ul.products').addClass('ct-products-grid').removeClass('ct-products-list'); 38 }); 39 $('.woocommerce-archive-layout .layout-list').on('click', function () { 40 $(this).addClass('active'); 41 $(this).parent().find('.layout-grid').removeClass('active'); 42 $(this).parents('.site-main').find('ul.products').addClass('ct-products-list').removeClass('ct-products-grid'); 43 }); 44 45 $('.woocommerce-archive-layout .layout-list.active').parents('.site-main').find('ul.products').addClass('ct-products-list').removeClass('ct-products-grid'); 46 47 setTimeout(function () { 48 $('.ct-grid .product_type_variable, .ct-slick-slider .product_type_variable').removeAttr('data-product_id'); 49 $('.ct-product-carousel6.woocommerce .woocommerce-product-inner .woocommerce-a
49dd-to--cart .button').append( '<i class="flaticon-shopping-cart-1"></i>' ); 50 $('.ct-product-carousel9.woocommerce .woocommerce-product-inner .woocommerce-add-to--cart .button').append( '<i class="flaticon-shopping-cart-1"></i>' ); 51 }, 300); 52 53 $(".woocommerce .products").on("click", ".quantity input", function() { 54 return false; 55 }); 56 $(".woocommerce .products").on("change input", ".quantity .qty", function() { 57 var add_to_cart_button = $(this).parents( ".product" ).find(".add_to_cart_button"); 58 add_to_cart_button.attr('data-quantity', $(this).val()); 59 add_to_cart_button.attr("href", "?add-to-cart=" + add_to_cart_button.attr("data-product_id") + "&quantity=" + $(this).val()); 60 }); 61 $('.flex-viewport').parents('.woocommerce-gallery-inner').addClass('flex-slider-active'); 62 63 /* Add Placeholder Review Form */ 64 var $text_name = $('.single-product #review_form .comment-form-author label').text(); 65 $('.single-product #review_form .comment-form-author input').each(function (ev) { 66 if (!$(this).val()) { 67 $(this).attr("placeholder", $text_name); 68 } 69 }); 70 var $text_email = $('.single-product #review_form .comment-form-email label').text(); 71 $('.single-product #review_form .comment-form-email input').each(function (ev) { 72 if (!$(this).val()) { 73 $(this).attr("placeholder", $text_email); 74 } 75 }); 76 var $text_comment = $('.single-product #review_form .comment-form-comment label').text(); 77 $('.single-product #review_form .comment-form-comment textarea').each(function (ev) { 78 if (!$(this).val()) { 79 $(this).attr("placeholder", $text_comment); 80 } 81 }); 82 83 84 }); 85 86})(jQuery); 87 88 89jQuery( document ).on( 'qv_loader_stop', function () { 90 jQuery( this ).ready( function ( $ ) { 91 $('#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>'); 92 $('#yith-quick-view-modal .quantity-up').on('click', function () { 93 $(this).parents('.quantity').find('input[type="number"]').get(0).stepUp(); 94 }); 95 $('#yith-quick-view-modal .quantity-down').on('click', function () { 96 $(this).parents('.quantity').find('input[type="number"]').get(0).stepDown(); 97 }); 98 } ); 99} );
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.