PageSourceSearch

https://familyservice.sk.ca/wp-content/custom_codes/5742-js-head.js?ver=24

js familyservice.sk.ca collected 2026-09-30 18:08:04 UTC 3,421 bytes, 116 lines download raw bytes

1jQuery(function($){
2
3	$('.select-items div:contains("[Member]Board of Directors")').hide()
4	$('.select-items div:contains("[Member]Executive Team")').hide()
5	$('.select-items div:contains("[Member]Program staff")').hide()
6	
7	$('.select-items div:contains("Fixed")').hide()
8	$('.select-items div:contains("Counsellors")').hide()
9	$('.select-items div:contains("Domestic Violence Court Program")').hide()
10	$('.select-items div:contains("Counselling and General Information")').hide()
11	$('.select-items div:contains("Employee Assistance")').hide()
12	$('.select-items div:contains("Employment")').hide()
13	$('.select-items div:contains("Intimate Partner Violence Outreach")').hide()
14	$('.select-items div:contains("Planning")').hide()
15	$('.select-items div:contains("Uncategorized")').hide()
16	
17	
18	$('.select-items div:contains("52 North Program")').hide()
19	$('.select-items div:contains("Administrative Support")').hide()
20	$('.select-items div:contains("Bereavement")').hide()
21	$('.select-items div:contains("Bullying / Cyberbullying")').hide()
22	$('.select-items div:contains("Child and Youth Support Program")').hide()
23
24	
25	window.et_pb_smooth_scroll = function($target, $top_section, speed, easing) {
26
27		var $window_width = $(window).width();
28
29		$menu_offset = -1;
30
31		var headerHeight = 135;
32
33		if ($('#wpadminbar').length && $window_width <= 980) {
34			$menu_offset += $('#wpadminbar').outerHeight() + headerHeight;
35		}
36		else {
37			$menu_offset += headerHeight;
38		}
39
40		//fix sidenav scroll to top
41		if ($top_section) {
42			$scroll_position = 0;
43		}
44		else {
45			$scroll_position = $target.offset().top - $menu_offset;
46		}
47
48		// set swing (animate's scrollTop default) as default value
49		if (typeof easing === 'undefined') {
50			easing = 'swing';
51		}
52
53		$('html, body').animate({ scrollTop: $scroll_position }, speed, easing);
54
55	}
56	
57	
58});
59
60document.addEventListener("DOMContentLoaded", function() {
61  // Select all list items in the mobile menu
62  var menuItems = document.querySelectorAll('.nav--mobile--menu > li');
63
64  menuItems.forEach(function(item) {
65    // Check if the list item contains a ul
66    if (item.querySelector('ul')) {
67      // Create a new span element
68      var span = document.createElement('span');
69      span.textContent = 'Toggle'; // Optional: You can change the text as needed
70      span.style.cursor = 'pointer'; // Optional: Change cursor to pointer for better UX
71
72      // Insert the span before the first child of the li (usually the anchor tag)
73      item.insertBefore(span, item.firstChild);
74
75      // Add click event listener to the span
76      span.addEventListener('click', function() {
77        // Toggle the 'on' class on the ul element
78        var subMenu = item.querySelector('ul');
79        if (subMenu) {
80          subMenu.classList.toggle('on');
81        }
82        // Toggle the 'on' class on the span element
83        span.classList.toggle('on');
84      });
85    }
86  });
87});
88
89
90jQuery(function($){
91	function getAway() {
92	  // Get away right now
93	  window.open("http://weather.com", "_newtab");
94	  // Replace current site with another benign site
95	  window.location.replace('http://google.com');
96	}
97
98	$(function() {
99
100	  $("#get-away").on("click", function(e) {
101		getAway();
102	  });
103
104	  $("#get-away a").on("click", function(e) {
105		// allow the (?) link to work
106		e.stopPropagation();
107	  });
108
109	  $(document).keyup(function(e) {
110		if (e.keyCode == 27) { // escape key
111		getAway();
112		}
113	  });
114
115	});
116});

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.