PageSourceSearch

https://www.socialancer.com/wp-content/themes/bold-news/framework/…?ver=cb0202859b2294519aa6cd1892e80090

js socialancer.com collected 2026-09-24 18:34:49 UTC 1,651 bytes, 63 lines download raw bytes

1'use strict';
2
3(function( $ ) {
4	$( document ).ready(function() {
5
6		if ( $( '.btParallax' ).length > 0 ) {
7
8			window.bt_raf_lock = false;
9
10			$( window ).on( 'mousewheel', function( e ) {
11
12			});
13
14			$( window ).on( 'scroll resize', function() {
15				if ( ! window.bt_raf_lock ) {
16					window.bt_raf_lock = true;
17					bt_requestAnimFrame( bt_raf_loop );
18				}
19			});
20			
21			$( window ).on( 'load', function() {
22				bt_requestAnimFrame( bt_raf_loop );
23			});
24
25			window.bt_requestAnimFrame = function() {
26				return (
27					window.requestAnimationFrame       ||
28					window.webkitRequestAnimationFrame ||
29					window.mozRequestAnimationFrame    ||
30					window.oRequestAnimationFrame      ||
31					window.msRequestAnimationFrame     ||
32					function( callback ) {
33						window.setTimeout( callback, 1000 / 60 );
34					}
35				);
36			}();
37
38			var bt_raf_loop = function() {
39
40				$( '.btParallax' ).each(function() {
41					var bounds = this.getBoundingClientRect();
42					if ( bounds.top < window.innerHeight && bounds.bottom > 0 ) {
43						var speed = $( this ).data( 'parallax' ) + 0.0001;
44						var offset = 0;
45						if( window.innerWidth > 1024 ) offset= parseFloat( $( this ).data( 'parallax-offset' ) );
46						var ypos = ( bounds.top ) * speed;
47						var firefox  = navigator.userAgent.indexOf('Firefox') > -1;
48						if(firefox && $('body').hasClass('btMenuVerticalLeftEnabled')) ypos = -ypos;
49						$( this ).css( 'background-position', '50% ' + ( ypos + offset ) + 'px' );
50					}
51
52				});
53
54				window.bt_raf_lock = false;
55
56			}
57
58			bt_requestAnimFrame( bt_raf_loop );	
59
60		}
61	});
62
63})( 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.