https://www.golfhotel-saint-samson.com/wp-content/plugins/coherence-core/assets/js/main.js?ver=5.0.0
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 // e.preventDefault(); 29 30 $(this).siblings('.sub-menu').animate({ 31 height: "toggle" 32 }, 300); 33 }); 34 } 35 36 var menutoggle = $('.menu-toggle'); 37 var mainmenu = $('.navbar-nav'); 38 39 menutoggle.on('click', function () { 40 if (menutoggle.hasClass('is-active')) { 41 mainmenu.removeClass('menu-open'); 42 } else { 43 mainmenu.addClass('menu-open'); 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 Progress BAR 70 ----------------------------------------*/ 71 function td_Progress() { 72 var progress = $('.progress-rate'); 73 var len = progress.length; 74 for (var i = 0; i < len; i++) { 75 var progressId = '#' + progress[i].id; 76 var dataValue = $(progressId).attr('data-value'); 77 $(progressId).css({ 'width': dataValue + '%' }); 78 } 79 } 80 var progressRateClass = $('.progress-item'); 81 if ((progressRateClass).length) { 82 td_Progress(); 83 } 84 $('.counting').each(function () { 85 var $this = $(this), 86 countTo = $this.attr('data-count'); 87 88 $({ countNum: $this.text() }).animate({ 89 countNum: countTo 90 }, 91 92 { 93 duration: 2000, 94 easing: 'linear', 95 step: function () { 96 $this.text(Math.floor(this.countNum)); 97 }, 98 complete: function () { 99 $this.text(this.countNum); 100 } 101 }); 102 }); 103 104 /* ------------------------------------------------------------- 105 All-item isotope 106 ------------------------------------------------------------- */ 107 var $galleryFilterArea = $('.portfolio-isotope'), 108 $galleryFilterMenu = $('.portfolio-isotope-btn'); 109 /*Filter*/ 110 $galleryFilterMenu.on('click', 'button, a', function () { 111 var $this = $(this), 112 $filterValue = $this.attr('data-filter'); 113 $galleryFilterMenu.find('button, a').removeClass('active'); 114 $this.addClass('active'); 115 $galleryFilterArea.isotope({ filter: $filterValue });
116 }); 117 /*Grid*/ 118 $galleryFilterArea.each(function () { 119 var $this = $(this), 120 $galleryFilterItem = '.all-isotope-item'; 121 $this.imagesLoaded(function () { 122 $this.isotope({ 123 itemSelector: $galleryFilterItem, 124 percentPosition: true, 125 masonry: { 126 columnWidth: '.item-sizer', 127 } 128 }); 129 }); 130 }); 131 132 133 $('header .menu-burger').click(function () { 134 $('header.header-core').toggleClass('show-menu'); 135 }); 136 137 $('header .header-core-navbar ul li.menu-item-has-children').click(function (e) { 138 $(this).toggleClass('show-sub-menu'); 139 }); 140 141 }); 142 143 $(window).on("scroll", function () { 144 /*--------------------------------------- 145 back-to-top 146 -----------------------------------------*/ 147 var ScrollTop = $('.back-to-top'); 148 if ($(window).scrollTop() > 1000) { 149 ScrollTop.fadeIn(1000); 150 } else { 151 ScrollTop.fadeOut(1000); 152 } 153 154 /*--------------------------------------- 155 sticky-active 156 -----------------------------------------*/ 157 var scroll = $(window).scrollTop(); 158 if (scroll < 445) { 159 $(".navbar").removeClass("sticky-active"); 160 } else { 161 $(".navbar").addClass("sticky-active"); 162 } 163 164 }); 165 166 167 $(window).on('load', function () { 168 169 /*----------------- 170 preloader 171 ------------------*/ 172 var preLoder = $("#preloader"); 173 preLoder.fadeOut(0); 174 175 /*--------------------- 176 Cancel Preloader 177 ----------------------*/ 178 $(document).on('click', '.cancel-preloader a', function (e) { 179 e.preventDefault(); 180 $("#preloader").fadeOut(2000); 181 }); 182 183 }); 184 185 186 187})(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.