PageSourceSearch

https://www.weirdhistorian.com/wp-content/themes/sociallyviral2/js/sticky.js?ver=7.1.2

js weirdhistorian.com collected 2026-10-02 10:51:29 UTC 807 bytes, 24 lines download raw bytes

1jQuery(document).ready(function() {
2	function isScrolledTo(elem) {
3		var docViewTop = jQuery(window).scrollTop(); //num of pixels hidden above current screen
4		var docViewBottom = docViewTop + jQuery(window).height();
5
6		var elemTop = jQuery(elem).offset().top; //num of pixels above the elem
7		var elemBottom = elemTop + jQuery(elem).height();
8
9		return ((elemTop <= docViewTop));
10	}
11
12	var catcher = jQuery('#catcher');
13	var sticky = jQuery('#sticky');
14	
15	jQuery(window).scroll(function() {
16		if(isScrolledTo(sticky) && sticky.css('position') != 'fixed') {
17			sticky.css('position','fixed');
18			sticky.css('top','0');
19		} else if (jQuery(window).scrollTop() <= catcher.offset().top && sticky.css('position') != 'relative') {
20			sticky.css('position','relative');
21			sticky.css('top', 'auto');
22		}
23	});
24});

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.