PageSourceSearch

https://www.stdlabs.com/js/main.js

js stdlabs.com collected 2026-09-29 08:19:28 UTC 764 bytes, 31 lines download raw bytes

1jQuery(document).ready(function($) {
2	
3	// Add class to menu parents
4	$("#primary-main-menu li a").each(function() {
5		if ($(this).next().length > 0) {
6			$(this).addClass("parent");
7		};
8	});
9		
10	// Scroll to top
11	$('a[href="#top"]').click(function () {
12		$('body,html').animate({
13			scrollTop: 0
14		}, 800);
15		return false;
16	});
17	
18	// Search
19	$('.header-search-toggle').click(function () {
20		$(this).toggleClass('search-active');
21		$('#header-search-wrapper').fadeToggle('slow');
22	});
23	
24	// Phone/iPod/iPad's hover fix
25	if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
26    $(".filterable-grid li").click(function(){
27        //we just need to attach a click event listener
28    });
29}
30	
31});

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.