PageSourceSearch

https://jamyang.co.uk/wp-content/plugins/edwiser-bridge-pro/public…/edwiser-bridge-pro-elementor.js?ver=4.2.2

js jamyang.co.uk collected 2026-09-24 21:52:29 UTC 3,920 bytes, 102 lines download raw bytes

1jQuery( function( $ ) {
2	// Orderby
3	$( '.eb-pro-shop-orderby-filter' ).on( 'change', 'select.orderby', function() {
4        console.log('orderby');
5		$( this ).closest( 'form' ).trigger( 'submit' );
6	});
7
8    // category filter
9    $( '.eb-pro-shop-category-filter' ).on( 'change', 'select.category', function() {
10        $( this ).closest( 'form' ).trigger( 'submit' );
11    });
12
13    // image selector
14    $('.product-small-image').on('click', function(){
15        var img_src = $(this).find('img').attr('src');
16        var img_srcset = $(this).find('img').attr('srcset');
17
18        // change the main image
19        $('.product-main-image img').attr('src', img_src);
20        $('.product-main-image img').attr('srcset', img_srcset);
21
22        // change selected class
23        $('.product-small-image img').removeClass('selected');
24        $(this).find('img').addClass('selected');
25    })
26
27    // product page tabs
28    $('.eb-pro-product-page-details .tab').on('click', function(){
29        var tab_id = $(this).attr('data-tab');
30
31        $('.eb-pro-product-page-details .tab').removeClass('active');
32        $('.eb-pro-product-page-details .tab-content').removeClass('active');
33
34        $(this).addClass('active');
35        $('.'+tab_id+'-content').addClass('active');
36    });
37
38    // quantity plus minus
39    $('.eb-pro-product-page-sidebar .quantity-plus').on('click', function(e){
40        e.preventDefault();
41        // var quantity = parseInt($('.eb-pro-product-page-sidebar .quantity-input').val());
42        // $('.eb-pro-product-page-sidebar .quantity-input').val(quantity + 1);
43        // find nearest form and update the quantity
44        var quantity = parseInt($(this).closest('.quantity-wrap').find('input').val());
45        $(this).closest('.quantity-wrap').find('input').val(quantity + 1);
46        
47    }
48    );
49
50    $('.eb-pro-product-page-sidebar .quantity-minus').on('click', function(e){
51        e.preventDefault();
52        var quantity = parseInt($(this).closest('.quantity-wrap').find('input').val());
53        if(quantity > 1){
54            $(this).closest('.quantity-wrap').find('input').val(quantity - 1);
55        }
56    });
57
58    $('.eb-pro-shop-grid-view').on('click', function(){
59        $('.eb-pro-shop-products-card-wrap').show();
60        $('.eb-pro-shop-products-list-wrap').attr('style', 'display: none !important'); // display flex is added forcefully
61
62        // chnage the color of the grid view button
63        $('.eb-pro-shop-list-view svg path').css('fill', '#385B5C');
64        $('.eb-pro-shop-grid-view svg path').css('fill', '#0041C9');
65    });
66
67    $('.eb-pro-shop-list-view').on('click', function(){
68        $('.eb-pro-shop-products-card-wrap').hide();
69        $('.eb-pro-shop-products-list-wrap').show();
70
71        // chnage the color of the list view button
72        $('.eb-pro-shop-list-view svg path').css('fill', '#0041C9');
73        $('.eb-pro-shop-grid-view svg path').css('fill', '#385B5C');
74    });
75
76    $(window).on('load', function(){
77        $( ".single_variation_wrap" ).on(
78            "show_variation",
79            function ( event, variation ) {
80                //$('.single_variation').hide();
81                $('#variation_id').val(variation.variation_id);
82                $('.eb-pro-cart-cta').removeAttr('disabled');
83
84                $('.associated-courses').hide();
85                // show associated courses with data-variation-id
86                if (variation.variation_id) {
87                    $('.associated-courses[data-variation-id="'+variation.variation_id+'"]').show();
88                }
89            }
90        );
91
92        // on variation reset hide the associated courses and disable the add to cart button
93        $( ".single_variation_wrap" ).on(
94            "hide_variation",
95            function ( event ) {
96                $('.associated-courses').hide();
97                $('.eb-pro-cart-cta').attr('disabled', 'disabled');
98            }
99        );
100    });
101
102});

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.