PageSourceSearch

https://reesrv.com/wp-content/themes/saasland/assets/js/custom-wp.js?ver=1.0

js reesrv.com collected 2026-10-02 01:41:23 UTC 6,427 bytes, 183 lines download raw bytes

1;(function ($) {
2    "use strict";
3
4    $(document).ready(function () {
5
6        // Add job apply form class
7        $('.page-job-apply .wpcf7-form').addClass('row');
8
9        // Apply pull quote color
10        let pullquote_color = $('.wp-block-pullquote').attr('style');
11        $('.wp-block-pullquote blockquote').attr('style', pullquote_color);
12
13        $('.tinv-wraper.tinv-wishlist a.tinvwl_add_to_wishlist_button').append('<i class="ti-heart"></i>');
14
15        // Manage hash link prevent default 
16        function hashLinkprevendDefault() {
17
18             let link =    $('.menu li> a');
19
20             link.on('click', function() {
21
22                let urlHash = $(this).attr('href').split('/');
23
24                if(urlHash[urlHash.length - 1] === '#') {
25                    return false;
26                }               
27
28             });
29
30        }
31
32        hashLinkprevendDefault();
33
34        function mobileMenudropdown(x) {
35
36            if (x.matches) { // If media query matches
37                $('.menu li.submenu > a').on('click', function (event) {
38                    event.preventDefault()
39                    $(this).parent().find('ul').first().toggle(700);
40                    $(this).parent().siblings().find('ul').hide(700);
41                });
42            } 
43
44          }
45          
46          var x = window.matchMedia("(max-width: 767px)");
47          mobileMenudropdown(x);
48
49         // Attach listener function on state changes
50          x.addEventListener("change", () => {
51
52            mobileMenudropdown()
53
54           });
55        
56
57        $('.navbar-nav .mega_menu>.dropdown-menu').wrap('<div class="mega_menu_inner"></div>');
58
59        if ($('.comment_box .children').length > 0) {
60            $('.comment_box .children').addClass('list-unstyled reply_comment').removeClass('children');
61            $('.reply_comment .post_comment').removeClass('post_comment');
62        }
63
64        $('.widget_products').addClass('widget_product');
65        $('.widget_top_rated_products').addClass('widget_product');
66        $('.widget_recently_viewed_products').addClass('widget_product');
67        $('.widget_products ul.product_list_widget').addClass('list-unstyled');
68        $('.widget_product_search').addClass('search_widget_two');
69        $('.widget_product_categories ').addClass('widget_category');
70
71        $('.footer-widget:first-child .f_widget').removeClass('pl_70 ');
72
73        /*------------- preloader js --------------*/
74        function loader() {
75            $(window).on('load', function () {
76                $('#ctn-preloader').addClass('loaded');
77                // Una vez haya terminado el preloader aparezca el scroll
78
79                if ($('#ctn-preloader').hasClass('loaded')) {
80                    // Es para que una vez que se haya ido el preloader se elimine toda la seccion preloader
81                    $('#preloader').delay(900).queue(function () {
82                        $(this).remove();
83                    });
84                }
85            });
86        }
87
88        loader();
89
90        //* Navbar Fixed
91        function navbarFixed() {
92            if ($('.header_stick').length) {
93                $(window).scroll(function () {
94                    var scroll = $(window).scrollTop();
95                    if (scroll) {
96                        $(".header_stick").addClass("navbar_fixed");
97                    } else {
98                        $(".header_stick").removeClass("navbar_fixed");
99                    }
100                });
101            }
102        }
103
104        navbarFixed();
105
106        if ($('.search-btn').length) {
107            $('.search-btn').on('click', function () {
108                $('body').addClass('open');
109                setTimeout(function () {
110                    $('.search-input').focus();
111                }, 500);
112                return false;
113            });
114            $('.close_icon').on('click', function () {
115                $('body').removeClass('open');
116                return false;
117            });
118        }
119
120        // hamburger_menu
121        function offcanvasActivator() {
122            if ($('.bar_menu').length) {
123                $('.bar_menu').on('click', function () {
124                    $('#menu').toggleClass('show-menu');
125                });
126                $('.close_icon').on('click', function () {
127                    $('#menu').removeClass('show-menu');
128                });
129            }
130        }
131
132        offcanvasActivator();
133
134        $('.offcanfas_menu .dropdown').on('show.bs.dropdown', function (e) {
135            $(this).find('.dropdown-menu').first().stop(true, true).slideDown(400);
136        });
137        $('.offcanfas_menu .dropdown').on('hide.bs.dropdown', function (e) {
138            $(this).find('.dropdown-menu').first().stop(true, true).slide
138Up(500);
139        });
140
141        $(window).on("load", function () {
142            if ($('.mega_menu_two .scroll').length) {
143                $(".mega_menu_two .scroll").mCustomScrollbar({
144                    mouseWheelPixels: 50,
145                    scrollInertia: 0,
146                });
147            }
148        });
149
150        // Update cart button
151        $('.ar_top').on('click', function () {
152            var getID = $(this).next().attr('id');
153            var result = document.getElementById(getID);
154            var qty = result.value;
155            $('.shopping_cart_area .cart_btn.cart_btn_two').removeAttr('disabled');
156            if (!isNaN(qty)) {
157                result.value++;
158                $('.cart_btn.ajax_add_to_cart').attr('data-quantity', result.value )
159            } else {
160                return false;
161            }
162        });
163
164        $('.ar_down').on('click', function () {
165            var getID = $(this).prev().attr('id');
166            var result = document.getElementById(getID);
167            var qty = result.value;
168            $('.shopping_cart_area .cart_btn.cart_btn_two').removeAttr('disabled');
169            if (!isNaN(qty) && qty > 0) {
170                result.value--;
171                $('.cart_btn.ajax_add_to_cart').attr('data-quantity', result.value )
172            } else {
173                return false;
174            }
175        });
176    });
177
178    var wincow_width = $( window ).width();
179    if( 992 > wincow_width ){
180        $('.header_area').addClass('mobile_menu_enabled');
181    }
182
183})(jQuery);

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.