PageSourceSearch

https://sharan-india.org/wp-content/plugins/gift-products-for-wooc…/includes/js/wg_front_script.js?ver=6.4.1

js sharan-india.org collected 2026-09-24 19:10:50 UTC 2,566 bytes, 81 lines download raw bytes

1jQuery(document).ready(function(jQuery) {
2    jQuery('body').on('click', '.ocwg_gift_btn', function() {
3
4        if (jQuery(".ocwg_gift_div").length > 0) {
5            jQuery('html, body').animate({scrollTop: jQuery('.ocwg_gift_div').offset().top - 100}, 'fast');
6        } else {
7            jQuery('body').addClass("ocwg_body_gift");
8            jQuery('#ocwg_gifts_popup').css('display', 'block');
9            jQuery('.ocwg_gifts_popup_overlay').css("display", "block");
10        }
11        
12        return false;
13    });
14
15    jQuery('body').on('click', '.ocwg_gifts_popup_close', function() {
16        jQuery("#ocwg_gifts_popup").css("display", "none");
17        jQuery('.ocwg_gifts_popup_overlay').css("display", "none");
18        jQuery('body').removeClass("ocwg_body_gift");
19    });
20
21    jQuery('body').on('click', '.ocwg_gifts_popup_overlay', function() {
22        jQuery("#ocwg_gifts_popup").css("display", "none");
23        jQuery('.ocwg_gifts_popup_overlay').css("display", "none");
24        jQuery('body').removeClass("ocwg_body_gift");
25    });
26    
27    if(OCWGWdata.showslider_autoplay_or_not == "yes"){
28
29        var slider_true = true;
30
31    }else{
32        var slider_true = false;
33    }
34
35    setInterval(function() {
36        jQuery('.wg_gift_slider').owlCarousel({
37            loop:false,
38            margin:10,
39            nav:true,
40            dots: true,
41            autoplay:slider_true,
42            autoplayTimeout:1000,
43            autoplayHoverPause:true,
44            responsive:{
45                0:{
46                    items:OCWGWdata.showslider_item_mobile
47                },
48                600:{
49                    items:OCWGWdata.showslider_item_tablet
50                },
51                1000:{
52                    items:OCWGWdata.showslider_item_desktop
53                }
54            }
55        })
56    }, 1000);
57
58    setInterval(function() {
59        jQuery('.wg_gift_slider_pp').owlCarousel({
60            loop:false,
61            margin:10,
62            nav:true,
63            dots: true,
64            autoplay:slider_true,
65            autoplayTimeout:1000,
66            autoplayHoverPause:true,
67            responsive:{
68                0:{
69                    items:OCWGWdata.showslider_item_mobile
70                },
71                600:{
72                    items:OCWGWdata.showslider_item_tablet
73                },
74                1000:{
75                    items:OCWGWdata.showslider_item_desktop
76                }
77            }
78        })
79    }, 1000);
80    
81    });

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.