PageSourceSearch

https://studiografik.ca/blog/wp-content/themes/conrad/assets/js/wp.js?ver=1.0.0

js studiografik.ca collected 2026-10-08 14:05:28 UTC 1,137 bytes, 45 lines download raw bytes

1jQuery(function($){
2	'use strict'
3
4	var sectionSearchPattern = new RegExp('^#s-', 'i');
5
6	var fwp_check_if_scroll_needed = function(href, ignore_hash){
7		var element = $(href),
8			currentHash = window.location.hash;
9
10		if(currentHash == href && typeof ignore_hash == "undefined"){
11			return;
12		}
13
14		if(element.length == 1){
15			var scrollToPosition = element.offset().top;
16			$('body,html').stop().animate({scrollTop: scrollToPosition}, 500, function(){
17				window.location.hash = href;
18			});
19		}
20	}
21
22	// $('.fwp-navigation__link')
23	// 	.off('click.fwp touchstart.fwp')
24	// 	.on('click.fwp touchstart.fwp' , function(e){
25	// 		var href = $(this).attr('href');
26
27	// 		if (sectionSearchPattern.test(href)) {
28	// 			e.preventDefault();
29	// 			e.stopPropagation();
30	// 			fwp_check_if_scroll_needed(href);
31	// 		}
32	// 	});
33
34    $( '.comment-reply-link' ).on( 'click', function(e){
35	    e.stopPropagation();
36    });
37
38	var init = function(){
39		var currentHash = window.location.hash;
40		if(sectionSearchPattern.test(currentHash)){
41			fwp_check_if_scroll_needed(currentHash, true);
42		}
43	}
44	init();
45});

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.