PageSourceSearch

http://www.eaglehills.org/sites/js/cg-menu/script.js

js eaglehills.org collected 2026-10-04 09:51:49 UTC 847 bytes, 28 lines download raw bytes

1/* ============== cg-menu ===============
2 * author : Jiwon Han ([email protected]) 
3 * copyright (c) under cybergolf.com
4 * =================================== */
5$(document).ready(function() {
6	$('div[id=cg-menu]').prepend('<ul class=mobile-menu><li><a>Menu</a></li></ul>');	
7	$('#cg-menu > ul.mobile-menu').on('click', function() {
8		$(this).next().slideToggle();
9	});
10	$('#cg-menu > ul:not(.mobile-menu) > li > a').on('click', function() {
11		var cg_menu = $(this).parents('#cg-menu').get(0);
12		if ($(cg_menu).css("cursor") == "pointer"){
13			var childMenu = $(this).next();
14			if (childMenu.length) {
15				$(cg_menu).find('> ul > li > ul').each(function() {
16					if ($(this).is(childMenu)) {
17						$(this).slideToggle();
18					}
19					else {
20						if ($(this).is(":visible")) {
21							$(this).slideUp();
22						}
23					}
24				});
25			}
26		}
27	});
28});

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.