https://www.chillon.ch/wp-content/cache/min/1/wp-content/themes/ergopix/js/scripts.js?ver=1784550117
1$(function(){$(".gform_wrapper .readonly input").attr("readonly","");$(".gform_wrapper .disabled input").attr('disabled','disabled');$("#menu-mobile").mmenu({"navbar":{"title":ergopix_js.site_name},"extensions":["position-right"]});function whichAnimationEvent(){var t,el=document.createElement("fakeelement");var animations={"animation":"animationend","OAnimation":"oAnimationEnd","MozAnimation":"animationend","WebkitAnimation":"webkitAnimationEnd"} 2for(t in animations){if(el.style[t]!==undefined){return animations[t]}}} 3var animationEvent=whichAnimationEvent();$("#hamburger-full").click(function(e){e.preventDefault();if(!jQuery('html').hasClass('opened')){jQuery('html').addClass('opened').find(".header-menu-container").css("display","block")}else{jQuery('html').removeClass('opened').find(".header-menu-container").one(animationEvent,function(event){console.log("end - closed");jQuery(this).css("display","none")})}});if($(".calendar-trigger").length){$(".calendar-trigger").click(function(e){$('#tribe-bar-date').trigger('focus');return!1})} 4$("#chillonsearch,#chillonsearchmob,#searchcloser").click(function(e){jQuery('#mySearchBar').toggle()});adjustVerticalPosition();if($('#category-selector').length){$('#category-selector').on('change',function(){$('.fas.fa-circle-notch.fa-spin').removeClass('d-none');var valeur=$(this).find(":selected").val();if(valeur>0){location.href=ergopix_js.site_url+"?cat="+valeur}else location.href=ergopix_js.site_url+"/blog/"})}});function fixingMenu(){if($(".header-menu").get(0)!=undefined){var menuOffset=jQuery('.my-menu-offset-ref').offset();var trigger=menuOffset.top;if(jQuery('body').hasClass('home')){trigger=menuOffset.top-170;if(trigger<0) 5trigger=40} 6if((document.documentElement.scrollTop>trigger||document.body.scrollTop>trigger)&&!jQuery('html').hasClass('fixed')){jQuery('html').addClass('fixed')} 7if(((document.documentElement.scrollTop>0&&document.documentElement.scrollTop<trigger)||(document.body.scrollTop>0&&document.body.scrollTop<trigger))){jQuery('html').removeClass('fixed')} 8var homeTrigger=jQuery('.header-menu').height();if(homeTrigger==undefined) 9homeTrigger=60;if((document.documentElement.scrollTop>homeTrigger||document.body.scrollTop>homeTrigger)&&!jQuery('html').hasClass('fixed-home')){jQuery('html').addClass('fixed-home')} 10if(((document.documentElement.scrollTop>0&&document.documentElement.scrollTop<homeTrigger)||(document.body.scrollTop>0&&document.body.scrollTop<homeTrigger))){jQuery('html').removeClass('fixed-home')} 11if(((document.documentElement.scrollTop==0&&document.body.scrollTop==0&&jQuery('html').hasClass('fixed-home')))){jQuery('html').removeClass('fixed-home')} 12if(jQuery('.page-bottom-section').length){jQuery('html').addClass('pg-bt-section')} 13if(jQuery('.page-bottom-section').length&&jQuery('footer').length){var footerHeight=jQuery('footer').height();var htmlHeight=jQuery('html').height();var windowHeight=jQuery(window).height();var footerLimit=htmlHeight-windowHeight-footerHeight;var initDistance=0;var newBottom=40;if(document.documentElement.scrollTop>footerLimit){newBottom=document.documentElement.scrollTop-footerLimit+initDistance;jQuery('.page-bottom-section').css('bottom',newBottom+'px')}else if(document.body.scrollTop>footerLimit){newBottom=document.body.scrollTop-footerLimit+initDistance;jQuery('.page-bottom-section').css('bottom',newBottom+'px')}else if(jQuery('html').hasClass('fixed')){jQuery('.page-bottom-section').css('bottom',initDistance+'px')}else if(!jQuery('html').hasClass('fixed')){jQuery('.page-bottom-section').css('bottom','-40px')}} 14if(jQuery('.social-sidebar').length&&jQuery('footer').length){if(jQuery(window).width()<768){var footerHeightSc=jQuery('footer').height();var htmlHeightSc=jQuery('html').height();var windowHeightSc=jQuery(window).height();var footerLimitSc=htmlHeightSc-windowHeightSc-footerHeightSc;if(document.documentElement.scrollTop>footerLimitSc||document.body.scrollTop>footerLimitSc){jQuery('.social-sidebar').hide(400)}else{jQuery('.social-sidebar').show(400)}}else{jQuery('.social-sidebar').show(400)}}}} 15function topFunction(){jQuery('html, body').animate({scrollTop:0},1000);return!1} 16function adjustVerticalPosition(){if($('.events_section:not(.search-section)').length){$('.an_event').each(function(){var titleHeight=$(this).find('.ct-title h2').height();var imgHeight=$(this).find('.text-right img').height();var paddingTop=0;if(imgHeight>titleHeight&&$(window).width()>=768){paddingTop=(imgHeight-titleHeight)/2;$(this).find('.ct-title').css('paddingTop',paddingTop+'px')}else $(this).find('.ct-title').css('paddingTop','20px');if($(window).width()<768){$(this).find('.ct-title').css('paddingTop','0px');$(this).find('.ct-title').css('paddingBottom','20px')}})}} 17var header=jQuery("header");var body=jQuery("body");function theme_scrollAndResizeBehavior(){var sticky=$('body > .wrapper'),scroll=$(window).scrollTop();if(document.getElementById("backtotopBtn")){if(document.body.scrollTop>800||document.documentElement.scrollTop>800){document.getElementById("backtotopBtn").style.display="block"}else{document.getElementById("backtotopBtn").style.display="none"}} 18fixingMenu();adjustVerticalPosition()} 19$(window).scroll(function(){theme_scrollAndResizeBehavior()});$(window).resize(function(){theme_scrollAndResizeBehavior()})
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.