PageSourceSearch

https://www.wildfirst.ca/wp-content/themes/alone/assets/js/parallax.js?ver=1791145259

js wildfirst.ca collected 2026-10-04 20:23:47 UTC 2,389 bytes, 5 lines download raw bytes

1(function($){"use strict";$.fn.parallax=function(options){var windowHeight=$(window).height();var settings=$.extend({speed:0.20},options);return this.each(function(){var $this=$(this);var params={windowWidth:0,scrollTop:0,offset:0,height:0,yBgPosition:0}
2$(document).scroll(function(){params.scrollTop=$(window).scrollTop();params.offset=$this.offset().top;params.height=$this.outerHeight();params.windowWidth=$(window).width();if(params.offset+params.height<=params.scrollTop||params.offset>=params.offset+windowHeight){return;}params.yBgPosition=Math.round((params.offset-params.scrollTop)*settings.speed);if(params.windowWidth<=360){params.yBgPosition=0;}$this.css('cssText','background-position: center '+params.yBgPosition+'px !important; background-attachment: fixed !important; background-size: cover !important;');}).trigger('scroll');});}
3jQuery(document).ready(function($){"use strict";var window_height=$(window).height();$('.stripe-parallax-bg').each(function(){var $this=$(this),speedFactor=$this.data('parallax-speed');$this.css({'background-attachment':'fixed','background-size':'cover'}).parallax({speed:speedFactor});});$('.stripe-parallax-video').each(function(){var $this=$(this),$video=$this.find('video'),speedFactor=$(this).data('parallax-speed')||0.7,ratio=0,video_bottom=0;var video_height=0;var el_height=$(this).outerHeight();$video.bind('loadeddata',function(){adjustvideo();doScroll();});var adjustvideo=function(){ratio=$video.data('ratio');video_height=el_height+(el_height+window_height)*(1-speedFactor);if(video_height<$(window).width()/ratio){video_height=$(window).width()/ratio}$video.css({'width':video_height*ratio+'px','maxWidth':video_height*ratio+'px',bottom:0});}
4if(speedFactor==1)return;var doScroll=function(){if($(window).width()<767)return;$video.attr({'appear':isappears($this),'delta':Math.round(isappears($this)*(1-speedFactor))});var delta=Math.round(isappears($this)*(1-speedFactor));$video.css({bottom:(0-delta)+'px'})};adjustvideo();doScroll();$(window).bind('scroll',doScroll).bind('resize',function(){adjustvideo();doScroll();}).trigger('scroll');})
5function isappears(element){var scrolltop=$(window).scrollTop(),top=$(element).offset().top;if(top<$(window).height()){return scrolltop;}if((scrolltop+$(window).height())>=($(element).offset().top)){return scrolltop+$(window).height()-$(element).offset().top;}return 0;}});}(jQuery));

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.