PageSourceSearch

https://starbuckmn.gov/repository/designs/templates/GO_starbuck-mn_resp/mobile.js

js starbuckmn.gov collected 2026-10-10 02:26:49 UTC 2,819 bytes, 86 lines download raw bytes

1$(document).ready(function () {
2	addNavSystems();
3	addEvents();
4
5	if ($('div.insideMainContent').text().length <= 10
6		&& $('div.insideLeftContent').text().length <= 10
7		&& $('div.insideRightContent').text().length <= 10) {
8		$('div.mainContent').css('padding', 0);
9		$('div.leftContent').css('padding', 0);
10		$('div.rightContent').css('padding', 0);
11		$('div.insideMainContent').css('padding', 0);
12		$('div.insideLeftContent').css('padding', 0);
13		$('div.insideRightContent').css('padding', 0);
14	}
15
16	// Hide the below content title if there is no calendar
17	if ($('.Below .B_EV').length < 1) {
18		$('.belowContent .bigTitle').css('display', 'none');
19	}
20});
21
22function addNavSystems() {
23	var $nav = $('.navDrop > nav.primary.mobilemenu');
24	$nav.find("li.hasChildren").each(function () {
25		if ($(this).hasClass('current')) {
26			$(this).prepend($('<span class="plus open" tabindex="0"><span class="hidden">hide submenu</span><i class="fa fa-minus-square-o" aria-hidden="true"></i></span>'));
27			$(this).children("ul").slideDown();
28		} else
29			$(this).prepend($('<span class="plus" tabindex="0"><span class="hidden">show submenu</span><i class="fa fa-plus-square-o" aria-hidden="true"></i></span>'));
30	});
31}
32
33function addEvents() {
34	$('.searchIcon').click(function () {
35		if ($('div.searchDrop').is(':hidden')) {
36			$('.searchDrop').slideDown();
37			$('.searchField').focus();
38		} else {
39			$('.searchDrop').slideUp();
40		}
41	});
42	$('.navIcon').click(function () {
43		if ($('div.navDrop').is(':hidden')) {
44			$('.navDrop').slideDown();
45			$('div.allContainer').css('height', '100%');
46			$('.topbar').addClass('scroll');
47			$('body').addClass('noscroll');
48			$('.notifications').slideUp(1000, function () { });
49		} else {
50			$('.navDrop').slideUp();
51			$('.topbar').removeClass('scroll');
52			$('body').removeClass('noscroll');
53			$('div.allContainer').css('height', 'auto');
54			if (getCookie('notifications') != 'off') {
55				$('.notifications').slideDown(1000, function () { });
56			}
57		}
58	})
59
60	$('nav.mobilemenu span.plus').click(function () {
61		if ($(this).hasClass('open')) {
62			$(this).removeClass('open');
63			$(this).html('<i class="fa fa-plus-square-o" aria-hidden="true"></i>');
64			$(this).parent().children("ul").slideUp();
65		} else {
66			$(this).addClass('open');
67			$(this).html('<i class="fa fa-minus-square-o" aria-hidden="true"></i>');
68			$(this).parent().children("ul").slideDown();
69		}
70	});
71
72	$('nav.mobilemenu span.plus').keydown(function (e) {
73		if (e.keyCode == 13) { $(this).click(); }
74	});
75
76	$(window).resize(function () {
77		if ($(window).width() > 899) {
78			if ($('div.searchDrop').not(':hidden')) {
79				$('.searchDrop').slideUp();
80			}
81			if ($('div.navDrop').not(':hidden')) {
82				$('.navDrop').slideUp();
83			}
84		}
85	});
86}

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.