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-add-to-cart a.button.product_type_grouped:not(".no-animate")').append( '<i class="caseicon-link4"></i>' ); 35 36 $('.woocommerce-add-to-cart a.button').on('click', function () { 37 $(this).parents('.woocommerce-product-inner').addClass('cart-added'); 38 }); 39 40 $('.woocommerce-archive-layout .layout-grid').on('click', function () { 41 $(this).addClass('active'); 42 $(this).parent().find('.layout-list').removeClass('active'); 43 $(this).parents('.site-main').find('ul.products').addClass('ct-products-grid').removeClass('ct-products-list'); 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 }); 50 51 $('.woocommerce-archive-layout .layout-list.active').parents('.site-main').find('ul.products').addClass('ct-products-list').removeClass('ct-products-grid'); 52 53 setTimeout(function () { 54 $('.ct-grid .product_type_variable, .ct-slick-slider .product_type_variable').removeAttr('data-product_id'); 55 $('.ct-product-carousel6.woocommerce .woocommerce-product-inner .woocommerce-a
55dd-to--cart .button').append( '<i class="flaticon-shopping-cart-1"></i>' ); 56 $('.ct-product-carousel9.woocommerce .woocommerce-product-inner .woocommerce-add-to--cart .button').append( '<i class="flaticon-shopping-cart-1"></i>' ); 57 }, 300); 58 59 $(".woocommerce .products").on("click", ".quantity input", function() { 60 return false; 61 }); 62 $(".woocommerce .products").on("change input", ".quantity .qty", function() { 63 var add_to_cart_button = $(this).parents( ".product" ).find(".add_to_cart_button"); 64 add_to_cart_button.attr('data-quantity', $(this).val()); 65 add_to_cart_button.attr("href", "?add-to-cart=" + add_to_cart_button.attr("data-product_id") + "&quantity=" + $(this).val()); 66 }); 67 $('.flex-viewport').parents('.woocommerce-gallery-inner').addClass('flex-slider-active'); 68 69 /* Add Placeholder Review Form */ 70 var $text_name = $('.single-product #review_form .comment-form-author label').text(); 71 $('.single-product #review_form .comment-form-author input').each(function (ev) { 72 if (!$(this).val()) { 73 $(this).attr("placeholder", $text_name); 74 } 75 }); 76 var $text_email = $('.single-product #review_form .comment-form-email label').text(); 77 $('.single-product #review_form .comment-form-email input').each(function (ev) { 78 if (!$(this).val()) { 79 $(this).attr("placeholder", $text_email); 80 } 81 }); 82 var $text_comment = $('.single-product #review_form .comment-form-comment label').text(); 83 $('.single-product #review_form .comment-form-comment textarea').each(function (ev) { 84 if (!$(this).val()) { 85 $(this).attr("placeholder", $text_comment); 86 } 87 }); 88 89 $('.pxl-item--attr .pxl-button--info').on('click', function () { 90 $(this).toggleClass('active'); 91 }); 92 93 /* Checkout Placeholder */ 94 $('.woocommerce-checkout #billing_first_name').attr("placeholder", "Fast Name"); 95 $('.woocommerce-checkout #billing_last_name').attr("placeholder", "Last Name"); 96 $('.woocommerce-checkout #billing_company').attr("placeholder", "Company Name"); 97 $('.woocommerce-checkout #billing_company').attr("placeholder", "Company"); 98 $('.woocommerce-checkout #billing_city').attr("placeholder", "Town / City"); 99 $('.woocommerce-checkout #billing_postcode').attr("placeholder", "ZIP Code"); 100 $('.woocommerce-checkout #billing_phone').attr("placeholder", "Phone Number"); 101 $('.woocommerce-checkout #billing_email').attr("placeholder", "Email Address"); 102 $('#customer_login #username').attr("placeholder", "Username or email address"); 103 $('#customer_login #password').attr("placeholder", "Password"); 104 $('#customer_login #reg_email').attr("placeholder", "Email address"); 105 $('#customer_login #reg_username').attr("placeholder", "Username"); 106 $('#customer_login #reg_password').attr("placeholder", "Password"); 107 $('.lost_reset_password #user_login').attr("placeholder", "Username or email"); 108 109 }); 110 111})(jQuery); 112 113 114jQuery( document ).on( 'qv_loader_stop', function () { 115 jQuery( this ).ready( function ( $ ) { 116 $('#yith-quick-view-modal .quantity').append('<span class="quantity-icon quantity-down pxl-icon--caretdown"></span><span class="quantity-icon quantity-up pxl-icon--caretup"></span>'); 117 $('#yith-quick-view-modal .quantity-up').on('click', function () { 118 $(this).parents('.quantity').find('input[type="number"]').get(0).stepUp(); 119 }); 120 $('#yith-quick-view-modal .quantity-down').on('click', function () { 121 $(this).parents('.quantity').find('input[type="number"]').get(0).stepDown(); 122 }); 123 } ); 124} );
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.