https://musebaroque.fr/wp-content/themes/codate/js/ownScript.js?ver=29965eed4c6770ccd2296130c614f2f9
1jQuery(document).ready(function(){ 2/*global jQuery:false */ 3/*jshint devel:true, laxcomma:true, smarttabs:true */ 4"use strict"; 5 6 // show navigation when scroll up 7 var c, currentScrollTop = 0, 8 navbar = jQuery('.will_stick'); 9 10 jQuery(window).scroll(function () { 11 var a = jQuery(window).scrollTop() -200; 12 var b = navbar.height(); 13 14 currentScrollTop = a; 15 16 if (c < currentScrollTop && a > b + b) { 17 navbar.addClass("scrollUp"); 18 } else if (c > currentScrollTop && !(a <= b)) { 19 navbar.removeClass("scrollUp"); 20 } 21 c = currentScrollTop; 22 }); 23 // fix navigation when scroll down 400px 24 jQuery(".will_stick"); 25 jQuery(function () { 26 jQuery(window).scroll(function () { 27 if (jQuery(this).scrollTop() > 400) { 28 jQuery('.will_stick').addClass("scrollDown") 29 } else { 30 jQuery('.will_stick').removeClass("scrollDown") 31 } 32 }); 33 }); 34 35 36 // scroll to top 37 jQuery(".scrollTo_top").hide(); 38 jQuery(function () { 39 jQuery(window).scroll(function () { 40 if (jQuery(this).scrollTop() > 100) { 41 jQuery('.scrollTo_top').fadeIn(); 42 } else { 43 jQuery('.scrollTo_top').fadeOut(); 44 } 45 }); 46 47 jQuery('.scrollTo_top a').on('click',function(){ 48 jQuery('html, body').animate({scrollTop:0}, 500 ); 49 return false; 50 }); 51 }); 52 53 // searchtrigger 54 jQuery('a.searchOpen').on('click',function(){ 55 jQuery('#curtain').toggleClass('open'); 56 jQuery(this).toggleClass('opened'); 57 return false; 58 }); 59 60 jQuery('a.curtainclose').on('click',function(){ 61 jQuery('#curtain').removeClass('open'); 62 jQuery('a.searchOpen').removeClass('opened'); 63 return false; 64 }); 65 66 /* menutrigger */ 67 jQuery('a.menuOpen').on('click',function(){ 68 jQuery(this).toggleClass('opened'); 69 jQuery('#flyoff').toggleClass('visible'); 70 jQuery('.action-overlay').toggleClass('visible'); 71 jQuery('body').toggleClass('flyoff-is-visible'); 72 return false; 73 }); 74 75 jQuery('a.menuClose').on('click',function(){ 76 jQuery('a.menuOpen').removeClass('opened'); 77 jQuery('#flyoff').removeClass('visible'); 78 jQuery('.action-overlay').removeClass('visible'); 79 jQuery('body').removeClass('flyoff-is-visible'); 80 return false; 81 }); 82 83 jQuery('.action-overlay').on('click',function(){ 84 jQuery('a.menuOpen').removeClass('opened'); 85 jQuery('#flyoff').removeClass('visible'); 86 jQuery('.action-overlay').removeClass('visible'); 87 jQuery('body').removeClass('flyoff-is-visible'); 88 return false; 89 }); 90 91 92 93 // mobile menu 94 95 jQuery(document).ready(function () { 96 tmnf_dropdown_mobile(); 97 }); 98 99 window.tmnf_dropdown_mobile = () => { 100 let windowW = jQuery(window).width(); 101 102 jQuery('#main-nav li.menu-item-has-children > a').each(function () { 103 jQuery(this).append('<span class="tmnf_mobile_dropdown"></span>'); 104 }); 105 106 jQuery('body').find('.tmnf_mobile_dropdown').on('click', function (e) { 107 e.preventDefault(); 108 let dd = jQuery(this); 109 dd.closest('li').toggleClass(function () { 110 if ( window.innerWidth < 868) { 111 let subMenu = dd.closest('li').children('.sub-menu'); 112 subMenu.toggle(); 113 } 114 return 'active'; 115 }); 116 }); 117 }; 118 119});
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.