PageSourceSearch

https://store.hifiman.com/skin/frontend/hms/default/js/countdown.js

js hifiman.com collected 2026-09-24 21:38:42 UTC 1,422 bytes, 45 lines download raw bytes

1jQuery(function() {
2    var sWidth = jQuery("#countdown").width(); 
3    var len = jQuery("#countdown ul li").length; 
4    var index = 0;
5    var picTimer;
6
7    var btn = "<div class='controls'></div><div class='btn'>";
8    for(var i=0; i < len; i++) {
9        btn += "<span></span>";
10    }
11    jQuery("#countdown").append(btn);
12
13    jQuery("#countdown .btn span").mouseenter(function() {
14        index = jQuery("#countdown .btn span").index(this);
15        showPics(index);
16    }).eq(0).trigger("mouseenter");
17
18	
19    jQuery("#countdown ul").css("width",sWidth * (len));
20	
21	
22    jQuery("#countdown").hover(function() {
23        clearInterval(picTimer);
24    },function() {
25        picTimer = setInterval(function() {
26            showPics(index);
27            index++;
28            if(index == len) {
29                index = 0;
30            }
31        },4000); 
32    }).trigger("mouseleave");
33	
34    function showPics(index) { 
35        var nowLeft = -index*sWidth; 
36        jQuery("#countdown ul").stop(true,false).animate({
37            "left":nowLeft
38        },300); 
39        jQuery("#countdown .btn span").removeClass("on").eq(index).addClass("on");
40        jQuery("#countdown .btn .rollred").stop(true,false).animate({
41            "left":-nowLeft/2
42        },300); 
43        jQuery("#countdown .btn span").stop(true,false).animate(300).eq(index).stop(true,false).animate(300); 
44    }
45});

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.