PageSourceSearch

https://fx1019.ca/wp-content/themes/mbs_v2/js/script.js?ver=7.1.2

js fx1019.ca collected 2026-09-26 02:59:41 UTC 1,294 bytes, 54 lines download raw bytes

1jQuery(function($){	
2  
3  // When the user scrolls the page, execute myFunction
4  // window.onscroll = function() {myFunction()};
5
6  // Get the header
7  var header = document.getElementById("nav");
8
9  // Get the offset position of the navbar
10  var sticky = header.offsetTop;
11
12  // Add the sticky class to the header when you reach its scroll position. Remove "sticky" when you leave the scroll position
13  function myFunction() {
14    if (window.pageYOffset > sticky) {
15      header.classList.add("sticky");
16    } else {
17      header.classList.remove("sticky");
18    }
19  }
20  
21
22	$('.menu-toggle').click(function(){
23		$('header nav ul').slideToggle();
24		
25		return false;
26	});
27  
28
29	$('.superstar-toggle').click(function(){
30		$('#superstar_list').slideToggle();
31		
32		return false;
33	});
34  
35	/* Open external links in new tab */
36	$('a[href^="http://"]').filter(function(){
37			return this.hostname && this.hostname !== location.hostname;
38	})
39	.addClass("external")
40	.click( function() {
41			window.open(this.href);
42			return false;
43	});
44	$('a[href^="https://"]').filter(function(){
45			return this.hostname && this.hostname !== location.hostname;
46	})
47	.addClass("external")
48	.click( function() {
49			window.open(this.href);
50			return false;
51	});
52	
53		
54});

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.