PageSourceSearch

https://www.digitalwebgrafica.com/wp-content/themes/saira/woocommerce/js/woocommerce.js?ver=10.0.8

js digitalwebgrafica.com collected 2026-10-04 16:47:42 UTC 5,017 bytes, 104 lines download raw bytes

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        setTimeout(function () {
35            $('.ct-grid .product_type_variable, .ct-slick-slider .product_type_variable').removeAttr('data-product_id');
36        }, 200);
37
38        $(".woocommerce .products").on("click", ".quantity input", function() {
39            return false;
40        });
41        $(".woocommerce .products").on("change input", ".quantity .qty", function() {
42            var add_to_cart_button = $(this).parents( ".product" ).find(".add_to_cart_button");
43            add_to_cart_button.attr('data-quantity', $(this).val());
44            add_to_cart_button.attr("href", "?add-to-cart=" + add_to_cart_button.attr("data-product_id") + "&quantity=" + $(this).val());
45        });
46        $('.flex-viewport').parents('.woocommerce-gallery-inner').addClass('flex-slider-active');
47
48        /* Add Placeholder Review Form */
49        var $text_name = $('.single-product #review_form .comment-form-author label').text();
50        $('.single-product #review_form .comment-form-author input').each(function (ev) {
51            if (!$(this).val()) {
52                $(this).attr("placeholder", $text_name);
53            }
54        });
55        var $text_email = $('.single-product #review_form .comment-form-email label').text();
56        $('.single-product #review_form .comment-form-email input').each(function (ev) {
57            if (!$(this).val()) {
58                $(this).attr("placeholder", $text_email);
59            }
60        });
61        var $text_comment = $('.single-product #review_form .comment-form-comment label').text();
62        $('.single-product #review_form .comment-form-comment textarea').each(function (ev) {
63            if (!$(this).val()) {
64                $(this).attr("placeholder", $text_comment);
65            }
66        });
67
68        $('.pxl-item--attr .pxl-button--info').on('click', function () {
69            $(this).toggleClass('active');
70        });
71
72        /* Checkout Placeholder */
73        $('.woocommerce-checkout #billing_first_name').attr("placeholder", "Fast Name");
74        $('.woocommerce-checkout #billing_last_name').attr("placeholder", "Last Name");
75        $('.woocommerce-checkout #billing_company').attr("placeholder", "Company Name");
76        $('.woocommerce-checkout #billing_company').attr("placeholder", "Company");
77        $('.woocommerce-checkout #billing_city').attr("placeholder", "Town / City");
78        $('.woocommerce-checkout #billing_postcode').attr("placeholder", "ZIP Code");
79        $('.woocommerce-checkout #billing_phone').attr("placeholder", "Phone Number");
80        $('.woocommerce-checkout #billing_email').attr("placeholder", "Email Address");
81        $('#customer_login #username').attr("placeholder", "Username or email address");
82        $('#customer_login #password').attr("placeholder", "Password");
83        $('#customer_login #reg_email').attr("placeholder", "Email address");
84        $('#customer_login #reg_username').attr("placeholder", "Username");
85        $('#customer_login #reg_password').attr("placeholder", "Password");
86        $('.lost_reset_password #user_login').attr("placeholder", "Username or email");
87        
88
89    });
90
91})(jQuery);
92
93
94jQuery( document ).on( 'qv_loader_stop', function () {
95    jQuery( this ).ready( function ( $ ) {
96        $('#yith-quick-view-modal .quantity').append('<span class="quantity-icon quantity-down"></span><span class="quantity-icon quantity-up"></span>');
97        $('#yith-quick-view-modal .quantity-up').on('click', function () {
98            $(this).parents('.quantity').find('input[type="number"]').get(0).stepUp();
99        });
100        $('#yith-quick-view-modal .quantity-down').on('click', function () {
101            $(this).parents('.quantity').find('input[type="number"]').get(0).stepDown();
102        });
103    } );
104} );

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.