PageSourceSearch

https://www.golfhotel-saint-samson.com/wp-content/themes/coherence/assets/js/main.js?ver=2.6.2

js golfhotel-saint-samson.com collected 2026-10-08 19:42:28 UTC 4,075 bytes, 130 lines download raw bytes

1; (function ($) {
2    "use strict";
3
4    $(document).ready(function () {
5
6        /**-----------------------------
7         *  Navbar fix
8         * ---------------------------*/
9        // $(document).on('click', '.navbar-area .navbar-nav li.menu-item-has-children>a', function (e) {
10        //     e.preventDefault();
11        // })
12
13        /*-------------------------------------
14            menu
15        -------------------------------------*/
16        /*$('.navbar-area .menu').on('click', function () {
17            $(this).toggleClass('open');
18            $('.navbar-area .navbar-collapse').toggleClass('sopen');
19        });
20
21        // mobile menu
22        if ($(window).width() < 992) {
23            $(".in-mobile").clone().appendTo(".sidebar-inner");
24            $(".in-mobile ul li.menu-item-has-children").append('<i class="fas fa-chevron-right"></i>');
25            $('<i class="fas fa-chevron-right"></i>').insertAfter("");
26
27            $(".menu-item-has-children a").on('click', function (e) {
28                $(this).siblings('.sub-menu').animate({
29                    height: "toggle"
30                }, 300);
31            });
32        }
33
34        var menutoggle = $('.menu-toggle');
35        var mainmenu = $('.navbar-nav');
36
37        menutoggle.on('click', function () {
38            if (menutoggle.hasClass('is-active')) {
39                mainmenu.removeClass('menu-open');
40            } else {
41                mainmenu.addClass('menu-open');
42            }
43        });
44*/
45
46
47        /*--------------------------------------------
48            Search Popup
49        ---------------------------------------------*/
50        // var bodyOvrelay = $('#body-overlay');
51        // var searchPopup = $('#td-search-popup');
52        // var sidebarMenu = $('#sidebar-menu');
53
54        // $(document).on('click', '#body-overlay', function (e) {
55        //     e.preventDefault();
56        //     bodyOvrelay.removeClass('active');
57        //     searchPopup.removeClass('active');
58        //     sidebarMenu.removeClass('active');
59        // });
60        // $(document).on('click', '.search-bar-btn', function (e) {
61        //     e.preventDefault();
62        //     searchPopup.addClass('active');
63        //     bodyOvrelay.addClass('active');
64        // });
65
66
67
68        /*----------------------------------------
69           back to top
70        ----------------------------------------*/
71        $(document).on('click', '.back-to-top', function () {
72            $("html,body").animate({
73                scrollTop: 0
74            });
75            return false;
76        });
77
78    });
79
80    // $(window).on("scroll", function () {
81    //     /*---------------------------------------
82    //         back-to-top
83    //     -----------------------------------------*/
84    //     var ScrollTop = $('.back-to-top');
85    //     if ($(window).scrollTop() > 1000) {
86    //         ScrollTop.fadeIn(1000);
87    //     } else {
88    //         ScrollTop.fadeOut(1000);
89    //     }
90
91    //     /*---------------------------------------
92    //         sticky-active
93    //     -----------------------------------------*/
94    //     var scroll = $(window).scrollTop();
95    //     if (scroll < 445) {
96    //         $(".navbar").removeClass("sticky-active");
97    //     } else {
98    //         $(".navbar").addClass("sticky-active");
99    //     }
100
101    // });
102
103
104    $(window).on('load', function () {
105
106        /*-----------------
107            preloader
108        ------------------*/
109        var preLoder = $(".preloader");
110        preLoder.fadeOut(0);
111
112        /*-----------------
113            back to top
114        ------------------*/
115        var backtoTop = $('.back-to-top')
116        backtoTop.fadeOut();
117
118        /*---------------------
119            Cancel Preloader
120        ----------------------*/
121        $(document).on('click', '.cancel-preloader a', function (e) {
122            e.preventDefault();
123            $("#preloader").fadeOut(2000);
124        });
125
126    });
127
128
129
130})(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.