PageSourceSearch

https://www.harddrivebenchmark.net/js/dropdown.js

js harddrivebenchmark.net collected 2026-10-04 00:28:20 UTC 2,590 bytes, 72 lines download raw bytes

1//Open the dropdown menu if the user hovers over it
2		function openBenchmarksDropdown() {
3    jQuery("#benchmarks_dropdown").slideDown(180);
4}
5
6		function openSoftwareDropdown() {
7    jQuery("#software_dropdown").slideDown(180);
8}
9
10		function openHardwareDropdown() {
11    jQuery("#hardware_dropdown").slideDown(180);
12}
13
14		function openAboutDropdown() {
15    jQuery("#about_dropdown").slideDown(180);
16}
17
18window.onclick = function(event) {
19  if (!(jQuery(event.target).attr('id') == 'benchmarks_dropbtn') &&  
20			!(jQuery(event.target).hasClass('benchmarks_droplink_class')) &&
21  		!(jQuery(event.target).attr('id') == 'benchmarks_dropdown')) {
22
23        jQuery("#benchmarks_dropdown").slideUp(200);
24    }
25  if(!(jQuery(event.target).attr('id') == 'software_dropbtn') &&  
26			!(jQuery(event.target).hasClass('software_droplink_class')) &&
27  		!(jQuery(event.target).attr('id') == 'software_dropdown')) {
28
29        jQuery("#software_dropdown").slideUp(200);
30    }
31  if(!(jQuery(event.target).attr('id') == 'hardware_dropbtn') &&  
32			!(jQuery(event.target).hasClass('hardware_droplink_class')) &&
33  		!(jQuery(event.target).attr('id') == 'hardware_dropdown')) {
34
35        jQuery("#hardware_dropdown").slideUp(200);
36    }
37  if(!(jQuery(event.target).attr('id') == 'about_dropbtn') &&  
38			!(jQuery(event.target).hasClass('about_droplink_class')) &&
39  		!(jQuery(event.target).attr('id') == 'about_dropdown')) {
40
41        jQuery("#about_dropdown").slideUp(200);
42    }
43}
44
45// Close the dropdown menu if the user moves outside of it
46window.onmouseover = function(event) {
47  if (!(jQuery(event.target).attr('id') == 'benchmarks_dropbtn') &&  
48			!(jQuery(event.target).hasClass('benchmarks_droplink_class')) &&
49  		!(jQuery(event.target).attr('id') == 'benchmarks_dropdown')) {
50  			
51        jQuery("#benchmarks_dropdown").slideUp(200);
52    }
53  if(!(jQuery(event.target).attr('id') == 'software_dropbtn') &&  
54			!(jQuery(event.target).hasClass('software_droplink_class')) &&
55  		!(jQuery(event.target).attr('id') == 'software_dropdown')) {
56
57        jQuery("#software_dropdown").slideUp(200);
58    }
59  if(!(jQuery(event.target).attr('id') == 'hardware_dropbtn') &&  
60			!(jQuery(event.target).hasClass('hardware_droplink_class')) &&
61  		!(jQuery(event.target).attr('id') == 'hardware_dropdown')) {
62
63        jQuery("#hardware_dropdown").slideUp(200);
64    }
65
66  if(!(jQuery(event.target).attr('id') == 'about_dropbtn') &&  
67			!(jQuery(event.target).hasClass('about_droplink_class')) &&
68  		!(jQuery(event.target).attr('id') == 'about_dropdown')) {
69
70        jQuery("#about_dropdown").slideUp(200);
71    }
72}

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.