PageSourceSearch

https://www.banff-springs-hotel.com/content/cache/autoptimize/auto…fdebb6936d7ac9f8acb60e61daf1a.php?ver=6.9.5

js banff-springs-hotel.com collected 2026-09-25 03:47:41 UTC 5,044 bytes, 13 lines download raw bytes

1(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){"use strict";var is_mobile=window.innerWidth<768;var heroVideosPaused=false;var heroVideoControls;var heroPauseBTN;var heroPlayBTN;document.addEventListener("DOMContentLoaded",function(event){heroVideoControls=$('.js-hero-controls');heroPauseBTN=heroVideoControls.find('.js-hero-pause');heroPlayBTN=heroVideoControls.find('.js-hero-play');var glide_config=typeof vwh_config!='undefined'?vwh_config:{};heroPauseBTN.click(function(){$('#hero video').each(function(){$(this)[0].pause();});$(playBTN).css('display','flex');$(this).css('display','none');heroVideosPaused=true;});var heroCarousels=$('.hero-glide');heroCarousels.each(function(){var heroCarousel=new Glide($(this)[0],glide_config);var carouselSlides=$(this).find('.glide__slides > li');if(!is_mobile){heroCarousel.on('run.before',function(move){$('#hero video').each(function(){$(this)[0].pause();});});heroCarousel.on('run.after',function(move){var currentVideo=carouselSlides.eq(heroCarousel._i).find('video');if(currentVideo.length){heroVideoControls.fadeIn();heroPlayBTN.off('click');heroPlayBTN.click(function(){playCurrentHeroVideo(currentVideo);});if(heroVideosPaused){$(pauseBtn).css('display','none');$(playBTN).css('display','flex');}else{currentVideo[0].play();$(pauseBtn).css('display','flex');$(playBTN).css('display','none');}}else{heroVideoControls.fadeOut();}});heroCarousel.on('update',function(){var currentVideo=carouselSlides.eq(heroCarousel._i).find('video');if(currentVideo.length){heroVideoControls.fadeIn();heroPlayBTN.off('click');heroPlayBTN.click(function(){playCurrentHeroVideo(currentVideo);});if(heroVideosPaused){pauseBTN.hide();playBTN.show();}else{currentVideo[0].play();pauseBTN.show();playBTN.hide();}}else{heroVideoControls.fadeOut();}});}
2if($(this).find('.glide__slide').length>1){heroCarousel.mount();}
3heroVideoInit(heroCarousel,carouselSlides);});if(is_mobile){if($('#hero .glide__slides .item').length){$('#hero .glide__slides .item.item-video').each(function(){preloaderReveal($(this).find('video'));});}}else{$('#hero video').attr('preload','auto');}
4var vh=window.innerHeight*0.01;document.documentElement.style.setProperty('--herovh',vh+'px');window.addEventListener('resize',function(){vh=window.innerHeight*0.01;document.documentElement.style.setProperty('--herovh',vh+'px');});var pauseBTN=$('.js-hero-pause');var playBTN=$('.js-hero-play');});function preloaderReveal(video){var animation_duration=300;$(video).closest('.item').find('.preloader').addClass('preloader-out');$(video).closest('.item').addClass('video-ready');setTimeout(function(){$(video).next('.preloader').remove();if(is_mobile){$(video).remove();}},animation_duration);}
5function heroVideoInit(hero_glide,hero_slides){if(is_mobile){if($('#hero .glide__slides .item').length){$('#hero .glide__slides .item.item-video').each(function(){preloaderReveal($(this).find('video'));});}}else{$('#hero video').attr('preload','auto');$('#hero video').each(function(){var video=this;$(this).css('visibility','visible');if(typeof this.readyState!='undefined'){var duration_counter=0;var check_interval=50;var max_wait=30*1000;var video_check=setInterval(function(){if(video.readyState==4){var currentVideo=hero_slides.eq(hero_glide._i).find('video');if(currentVideo.length){heroVideoControls.fadeIn();heroPlayBTN.off('click');heroPlayBTN.click(function(){playCurrentHeroVideo(currentVideo);});if(!heroVideosPaused){currentVideo[0].play();}}else{heroVideoControls.fadeOut();}
6preloaderReveal(video);clearInterval(video_check);}
7if(duration_counter>max_wait){var fallback_img_src=$(video).closest('.item').data('image-src');$(video).closest('.item').css('background-image',"url('"+fallback_img_src+"')");preloaderReveal(video);$(video).remove();clearInterval(video_check);}else{duration_counter+=check_interval;}},check_interval);}
8if($('#hero').data('video-autoslide')&&$('#hero .glide__slide').length>1){video.addEventListener('ended',function(){hero_glide.go('>');});}});}
9heroFocalPoints();}
10function playCurrentHeroVideo(currentVideo){currentVideo.trigger('play');heroPauseBTN.show();heroPlayBTN.hide();heroVideosPaused=false;}
11function heroFocalPoints(){var heroItem=$('#hero .glide__slide');heroItem.each(function(){var img=$(this).find('.item-background img');var dataHorizontal=$(this).data('horizontal-focal');var dataVertical=$(this).data('vertical-focal');if(dataHorizontal==''){dataHorizontal=50;}
12if(dataVertical==''){dataVertical=50;}
13if(dataHorizontal==50&&dataVertical==50){}else{img.css('object-position',dataHorizontal+'%'+' '+dataVertical+'%');}});}},{}]},{},[1]);

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.