PageSourceSearch

https://sterlingfarmsgc.com/sites/js/cg-menu/tablet-parent-menu-touch.js

js sterlingfarmsgc.com collected 2026-10-02 17:35:26 UTC 720 bytes, 21 lines download raw bytes

1/* ============== cg-menu ===============
2 * Simulate css hover event when parent-menu clicked on table device.
3 * =================================== */
4$(document).ready(function() {
5	if ('ontouchstart' in window || navigator.msMaxTouchPoints) {
6		$('#cg-menu ul:not(.mobile-menu) li.has-child').on('click', function(event) {
7			//when device not automatically trigger hover event
8			if ($(this).find("ul").css('visibility') == 'hidden') {
9				event.stopPropagation();
10				if ($('#cg-menu').css("cursor") != "pointer") {
11					$(this).siblings().each(function() {
12						$(this).removeClass('click');
13						$(this).find("li.click").removeClass('click');
14					});
15					$(this).addClass('click');
16				}
17			}
18		});
19	}
20});
21

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.