PageSourceSearch

https://www.starofbethnalgreen.com/wp-content/cache/min/1/wp-conte…scripts-6d058281d4d324eee1d04a06d3685bac.js

js starofbethnalgreen.com collected 2026-10-06 14:06:56 UTC 5,314 bytes, 11 lines download raw bytes

1jQuery(document).ready(function($){var headerheight=$('.site-header').height();$('.site-main').css('margin-top',headerheight);$(window).scroll(function(){var scroll=$(window).scrollTop();if(scroll>=125){$('body').addClass('scroll')}else{$('body').removeClass('scroll')}});'use strict';var c,currentScrollTop=0,navbar=jQuery('#masthead');jQuery(window).scroll(function(){var a=$(window).scrollTop();var b=navbar.height();currentScrollTop=a;if(c<currentScrollTop&&a>b+b){navbar.addClass("scrollUp")}else if(c>currentScrollTop&&!(a<=b)){navbar.removeClass("scrollUp")}
2c=currentScrollTop});function resize(){var vheight=window.innerHeight;var vwidth=window.innerWidth;jQuery('.above-fold-splash').css({'height':vheight,'width':vwidth})};function scrollDown(){var vheight=jQuery(window).height();jQuery('html, body').animate({scrollTop:(Math.floor(jQuery(window).scrollTop()/vheight)+1)*vheight},500)};jQuery('.scrolldown').click(function(event){scrollDown();event.preventDefault()});jQuery(window).resize(function(){resize()});$('.flexslider.testimonials').flexslider({animation:"slide",animationSpeed:1000,animationLoop:!1,useCSS:!0,touch:!0,slideshow:!1,drag:!1,});$('.flexslider.threecolinfo').flexslider({animation:"slide",animationSpeed:1000,animationLoop:!0,useCSS:!0,touch:!0,slideshow:!1,});$('.flexslider.gallery').flexslider({animation:"fade",animationSpeed:1000,animationLoop:!0,useCSS:!0,touch:!0,slideshow:!1,});$('.flexslider.gallery .slides').on('click',function(){$(this).siblings('.flex-direction-nav').children('li').children('a.flex-next').trigger('click')});jQuery('.openbookingform').click(function(){jQuery('body').toggleClass('bookingopen')});jQuery('.closebooking').click(function(){jQuery('body').toggleClass('bookingopen')});var controller=new ScrollMagic.Controller({});var width=window.innerWidth;var height=window.innerHeight;jQuery('.above-fold-splash').css({'height':height,'width':width});if(window.innerWidth>980&&navigator.userAgent.match(/iPad/i)==null){if($('#stickThis')[0]){var scene1=new ScrollMagic.Scene({triggerElement:"#stickThis",triggerHook:"onLeave",reverse:!0,}).setPin("#stickThis").addTo(controller)}}
3if($('.three-column-info-section')[0]){function fade_scroll_animation(){var $anim_scroll=$(".three-column-info-section"),anim_time=1,anim_stagger=0.3,easing='ease',elem_y=50;var animationClass='col third desktop info-area active';var tl=new TimelineLite();$anim_scroll.each(function(index,element){var $this=$(this),$anim=$this.find(".info-area.desktop");tl.staggerFromTo($anim,anim_time,{y:elem_y,autoAlpha:0,ease:easing},{className:'+='+animationClass,y:0,autoAlpha:1,ease:easing},anim_stagger,index*0.2)})}
4if(window.innerWidth>980&&navigator.userAgent.match(/iPad/i)==null){var scene2=new ScrollMagic.Scene({triggerElement:'.three-column-info-section',triggerHook:"onEnter",offset:100,}).setTween(fade_scroll_animation).addTo(controller);scene2.setClassToggle('.three-column-info-section','active')}}
5function footer_animation(){var $anim_scroll=$("#colophon"),anim_time=1,anim_stagger=0.3,easing='ease',elem_y=50;var tl=new TimelineLite();$anim_scroll.each(function(index,element){var $this=$(this),$anim=$this.find(".col");tl.staggerFromTo($anim,anim_time,{y:elem_y,autoAlpha:0,ease:easing},{y:0,autoAlpha:1,ease:easing},anim_stagger,index*0.2)})}
6if(window.innerWidth>980&&navigator.userAgent.match(/iPad/i)==null){var scene3=new ScrollMagic.Scene({triggerElement:'#colophon',triggerHook:"onEnter",offset:100,}).setTween(footer_animation).addTo(controller);scene3.setClassToggle('#colophon','active')}
7if($('.featured-events:not(.more-events)')[0]){function event_animation(){var $anim_scroll=$(".featured-events"),anim_time=1,anim_stagger=0.3,easing='ease',elem_y=50;var tl=new TimelineLite();$anim_scroll.each(function(index,element){var $this=$(this),$anim=$this.find(".event-item");tl.staggerFromTo($anim,anim_time,{y:elem_y,autoAlpha:0,ease:easing},{y:0,autoAlpha:1,ease:easing},anim_stagger,index*0.2)})}
8if(window.innerWidth>980&&navigator.userAgent.match(/iPad/i)==null){var scene4=new ScrollMagic.Scene({triggerElement:'.featured-events',triggerHook:"onEnter",offset:300,}).setTween(event_animation).addTo(controller);scene4.setClassToggle('.featured-events','active')}}
9AOS.init({offset:200,duration:1000,easing:'ease',delay:100,once:!0,disable:window.innerWidth<980,});function parallaxBG(){var $slider=document.getElementsByClassName("above-fold-splash")[0];var yPos=window.pageYOffset/15;yPos=-yPos;var coords='center '+yPos+'px';$slider.style.backgroundPosition=coords}
10if(window.innerWidth>1024&&navigator.userAgent.match(/iPad/i)==null){if($('.above-fold-splash')[0]){window.addEventListener("scroll",function(){parallaxBG()})}}
11$('.entry-content section.gallery-section').each(function(){if($(this).next('section').hasClass('gallery-section')){$(this).addClass("show-line")}});$buoop={shift_page_down:!1,insecure:!0,unsupported:!0,text:{'msg':'Your web browser ({brow_name}) is out of date.','msgmore':'To get the best possible experience using our website we recommend that you upgrade to a newer version or download an alternative browser.','bupdate':'Update browser','bignore':'Ignore','remind':'You will be reminded in {days} days.','bnever':'Never show again'},required:{i:0,e:-2,f:-2,o:-2,o_a:-2,s:-2,c:-2,y:-2,v:-2,uc:-2,samsung:-2}}})

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.