https://www.chillon.ch/wp-content/cache/min/1/wp-content/themes/er…/js/page-header.js?ver=1784550117
1var min_w=300;var vid_w_orig;var vid_h_orig;$(function(){if(jQuery('.no-page-header').length){$('html').addClass('no-page-header')} 2if(jQuery('.page-header-main .images_slider').length){if($('body.home').length&&$.cookie('token-splashscreen')===null||$.cookie('token-splashscreen')===""||$.cookie('token-splashscreen')==="null"||$.cookie('token-splashscreen')===undefined){var date=new Date();var minutes=1;date.setTime(date.getTime()+(minutes*60*1000)+3600000);var CookieSet=$.cookie('token-splashscreen','splashed',{expires:date});$('.home-temp-bg-img').css('opacity',1);$('.home-temp-bg-img').css('z-index',1001);var slickCollector=new Array();$('.page-header-main .images_slider').each(function(index){var dotsUse=!1;if($(this).attr('data-dots')==1) 3dotsUse=!0;slickCollector[index]=$(this).slick({dots:dotsUse,infinite:!0,centerMode:!0,slidesToShow:1,slidesToScroll:1,autoplay:!1,autoplaySpeed:4000,arrows:!1,centerPadding:"0",focusOnSelect:!1,pauseOnHover:!1,speed:700,fade:!0,cssEase:'linear',})});setTimeout(function(){$('.home-temp-bg-img').fadeIn(100,function(){$(this).fadeOut(2000,function(){$('.page-header-main .images_slider').each(function(index){var currentSlick=slickCollector[index];currentSlick.slick('slickPlay')})})})},5000)}else{$('.home-temp-bg-img').remove();$('.page-header-main .images_slider').each(function(){var dotsUse=!1;if($(this).attr('data-dots')==1) 4dotsUse=!0;$(this).slick({dots:dotsUse,infinite:!0,centerMode:!0,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:4000,arrows:!1,centerPadding:"0",focusOnSelect:!1,pauseOnHover:!1,speed:700,fade:!0,cssEase:'linear',})})}} 5if(jQuery('.page-header-main .background_slider_video .video_slider_container').length){$('.page-header-main .background_slider_video .video_slider_container').each(function(){var dotsUse=!1;if($(this).attr('data-dots')==1) 6dotsUse=!0;$(this).slick({dots:dotsUse,infinite:!0,centerMode:!0,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:6000,arrows:!1,centerPadding:"0",focusOnSelect:!1,pauseOnHover:!1,speed:700,fade:!0,cssEase:'linear',})})} 7if($('.background_video video').length){vid_w_orig=parseInt($('.background_video video').attr('width'));vid_h_orig=parseInt($('.background_video video').attr('height'))} 8if($(".video-foreground iframe[src*='//player.vimeo.com']")){var src=$(".video-foreground iframe[src*='//player.vimeo.com']").attr('src')+'&autoplay=1&loop=1&autopause=0&muted=1';$(".video-foreground iframe[src*='//player.vimeo.com']").attr('src',src)} 9$(window).trigger('resize');if($(".ph_down_scroller").length){$(".ph_down_scroller").click(function(e){e.preventDefault();var toScrollDown=600;if(document.body.scrollTop<toScrollDown&&document.documentElement.scrollTop<toScrollDown){$('html, body').animate({scrollTop:toScrollDown},1000)}})}});function ph_files_video_background_fit(){if($('.background_video video').length){$('.background_video #video-viewport').width($('.background_video .fullsize-video-bg').width());$('.background_video #video-viewport').height($('.background_video .fullsize-video-bg').height());var scale_h=$('.background_video .fullsize-video-bg').width()/vid_w_orig;var scale_v=$('.background_video .fullsize-video-bg').height()/vid_h_orig;var scale=scale_h>scale_v?scale_h:scale_v;if(scale*vid_w_orig<min_w){scale=min_w/vid_w_orig};$('.background_video video').width(scale*vid_w_orig);$('.background_video video').height(scale*vid_h_orig);$('.background_video #video-viewport').scrollLeft(($('.background_video video').width()-$('.background_video .fullsize-video-bg').width())/2);$('.background_video #video-viewport').scrollTop(($('.background_video video').height()-$('.background_video .fullsize-video-bg').height())/2)}};function ph_YtVim_video_background_fit(){if($('.video-foreground').length){var YtIframe=$('.video-foreground').find('iframe');var w=$(window).width();var h=$(window).height();var w200=w+200;var h200=h+200;if(w/h>16/9){var newH200=w200/16*9;$(YtIframe).css('width',w200);$(YtIframe).attr('width',w200);$(YtIframe).css('height',newH200);$(YtIframe).attr('height',newH200);var newLeft=(w200-w)/2;$(YtIframe).css('left',-newLeft+'px');$(YtIframe).attr('left',-newLeft+'px')}else{var newW200=h200/9*16;$(YtIframe).css('width',newW200);$(YtIframe).attr('width',newW200);$(YtIframe).css('height',h200);$(YtIframe).attr('height',h200);var newLeft=(newW200-w)/2;$(YtIframe).css('left',-newLeft+'px');$(YtIframe).attr('left',-newLeft+'px')}}} 10$(window).scroll(function(){ph_files_video_background_fit();ph_YtVim_video_background_fit()});$(window).resize(function(){ph_files_video_background_fit();ph_YtVim_video_background_fit()})
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.