PageSourceSearch

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

js harddrivebenchmark.net collected 2026-10-04 00:28:24 UTC 1,360 bytes, 50 lines download raw bytes

1var mouse_event_timer;
2
3/* STAD - "Show Tip After Delay */
4function STAD( event, rank, samples, size ) {
5	var xpos = event.clientX;
6	var ypos = event.clientY;
7	clearTimeout( mouse_event_timer );
8	mouse_event_timer = setTimeout( function() { show_tip( xpos, ypos, rank, 0, samples, size ); }, 150 );
9}
10
11/* STAD - "Show Tip After Delay */
12function value_STAD( event, rank, rating, samples, size ) {
13	var xpos = event.clientX;
14	var ypos = event.clientY;
15	clearTimeout( mouse_event_timer );
16	mouse_event_timer = setTimeout( function() { show_tip( xpos, ypos, rank, rating, samples, size ); }, 150 );
17}
18
19/* HTAD - "Hide Tip After Delay */
20function HTAD( ) {
21	clearTimeout( mouse_event_timer );
22	mouse_event_timer = setTimeout( function() { hide_tip(); }, 150 );
23}
24
25function show_tip( xpos, ypos, rank, rating, samples, size ) {
26
27	var tooltip = document.getElementById('tip');
28	tooltip.style.left = (xpos+3) + 'px';
29	tooltip.style.top = (ypos+3) + 'px';
30	
31	tooltip.innerHTML = "Rank: " + rank + "<br>";
32	tooltip.innerHTML += "Number of Samples: " + samples + "<br>";
33	
34	if( size )
35	{
36		tooltip.innerHTML += "Size: " + size +"<BR>";		
37	}
38	
39	if( rating > 0 )
40	{
41		tooltip.innerHTML += "Rating: " + rating + "<BR>";
42	}
43	
44	tooltip.style.visibility='visible';
45}
46
47function hide_tip( ) {
48	var tooltip = document.getElementById('tip');
49	tooltip.style.visibility='hidden';
50}

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.