PageSourceSearch

https://www.onlinesports.com/skin/frontend/default/onlinesports/js/customSearch.js

js onlinesports.com collected 2026-09-26 01:59:43 UTC 2,214 bytes, 75 lines download raw bytes

1jQuery(function($){
2
3	// search form tab navigation
4	$('#tabs div').click(function(){
5
6		// remove formatting
7		$('#tabs div').each(function(){
8			$(this).removeClass('active');
9		});
10
11		// add active to clicked tab
12		$(this).addClass('active');
13
14		// if active is sale change 'is_sale' to true else 'false'
15		if($(this).attr('id') == 'tab_search_sale') {
16			$('#is_sales').attr('value', '1'); 
17			$('#srch_bg').removeClass('srch_bg');
18			$('#srch_bg').addClass('srch_bg_sale');
19		}
20		else {
21			$('#is_sales').attr('value', '0'); 
22			$('#srch_bg').removeClass('srch_bg_sale');	
23			$('#srch_bg').addClass('srch_bg');
24		}
25	});
26
27	// toggle category drop down list
28	/*jQuery('#category_dropdown_select').hover(function(){
29		jQuery('#category_dropdown_cont').removeClass('inactive');
30	}, function(){
31		jQuery('#category_dropdown_cont').addClass('inactive');
32		jQuery('#category_dropdown_cont').hover(function(){
33			jQuery('#category_dropdown_cont').removeClass('inactive');
34		},function(){
35			jQuery('#category_dropdown_cont').addClass('inactive');
36		});
37	});
38	jQuery('#category_dropdown_cont li a').click(function(){
39		// update 'category' input
40		jQuery('#category').attr('value', $(this).attr('id').substring(1,10));
41
42		// update category_dropdown_select with the label
43		jQuery('#category_dropdown_select a').html($(this).html() + ' ▼');
44
45		// hide select box
46		jQuery('#category_dropdown_cont').addClass('inactive');
47	});*/
48
49	/*$('#category_dropdown_select a').click(function(){
50		$('#category_dropdown_cont').toggleClass('inactive');
51
52		$('#category_dropdown_cont li a').click(function(){
53			// update 'category' input
54			$('#category').attr('value', $(this).attr('id'));
55
56			// update category_dropdown_select with the label
57			$('#category_dropdown_select a').html($(this).html() + ' ▼');
58
59			// hide select box
60			$('#category_dropdown_cont').addClass('inactive');
61		});
62	});
63
64	// reset searchbox to all categories
65	$('#all_categories').click(function(){
66		// copy text from link
67		$('#category_dropdown_select a').html($(this).html() + ' ▼');
68
69		// empty category value
70		$('#category').attr('value', '');
71
72		// hide select box
73		$('#category_dropdown_cont').addClass('inactive');
74	});*/
75});

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.