PageSourceSearch

https://www.craftonhills.edu/sbccd-resources/_resources/js/chc/chc-active-nav.js

js craftonhills.edu collected 2026-10-01 13:52:08 UTC 1,132 bytes, 34 lines download raw bytes

1$(function(){
2	// selector for the nav container
3	var navigation = $('#sideMenu .list-unstyled:first'); 
4
5	// e.g. a.cms.omniupdate.com
6	var sassHost = 'wcms.sbccd.org'; 
7
8	/************* special *********************
9	Generic script to identify the current URL. 
10	This probably does not need to be edited.
11	*******************************************/
12	var path = window.location.pathname;
13	var ext = 'php';
14
15	if (window.location.host == sassHost) {
16		var href = window.location.href;
17		var startPath = '&path=';
18		var startPathPos = href.indexOf(startPath) + startPath.length;
19		var endPathPos = href.indexOf('&', startPathPos);
20		path = decodeURIComponent(href.substring(startPathPos, endPathPos));
21		path = path.replace('pcf', ext); //replace with correct extension
22	} else {
23		if ( path.indexOf(ext) < 0) {
24			path = path + "index" + ext;
25		}
26	}
27	/*******************************************
28	end section -- resume normal editing below
29	*******************************************/
30
31	var current = navigation.find('a[href="' + path + '"]');
32	current.parent().addClass('currentPage');
33	current.parent().html(current.text());
34})

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.