PageSourceSearch

https://spepchurch.org/wp-content/themes/alone/js/priority-menu.js

js spepchurch.org collected 2026-10-10 02:16:42 UTC 1,411 bytes, 53 lines download raw bytes

1(function ($) {
2    'use strict';
3
4	$( document ).ready(function() {
5		/**
6		 * Menu Mobile
7		 */
8
9		$('.site-branding').on('click', '.menu-toggle', function (event) {
10			event.preventDefault();
11			$(this).toggleClass('toggled-on');
12			$('.primary-navigation').toggleClass('show-menu');
13			$('.primary-navigation .expanded').find('ul').slideUp();
14			$('.primary-navigation').find('li').removeClass('expanded');
15		});
16
17		$('.primary-navigation').find('.page_item_has_children > a, .menu-item-has-children > a').append('<span class="sub-menu-toggle">On</span>');
18
19		$('.primary-navigation').on('click', '.sub-menu-toggle', function (event) {
20			event.preventDefault();
21			openSubMenu($(this));
22
23		});
24
25
26		$(window).on('resize', function () {
27		  if (window.matchMedia( '(min-width: 992px)' ).matches) {
28		      $('.menu-toggle').removeClass('toggled-on');
29					$('.primary-navigation').removeClass('show-menu');
30					$('.primary-navigation .expanded').find('ul').slideUp();
31					$('.primary-navigation').find('li').removeClass('expanded');
32		  }
33
34		});
35
36	});
37
38
39
40	/**
41	 * Open sub menu
42	 */
43	function openSubMenu($el) {
44	  $el.closest('li').siblings().find('ul').slideUp();
45	  $el.closest('li').siblings().removeClass('expanded');
46	  $el.closest('li').siblings().find('li').removeClass('expanded');
47
48	  $el.closest('li').children('ul').slideToggle();
49	  $el.closest('li').toggleClass('expanded');
50	}
51
52})
53(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.