1$(function() { 2 window.GetRTime = function () { 3 $('.riming').each(function(){ 4 var EndTime = new Date($(this).find('.list-inline').attr('time')); 5 //JS timestamp is measured in milliseconds 6 var NowTime = new Date().getTime(); 7 var t = EndTime - NowTime; 8 var d = 0; 9 var h = 0; 10 var m = 0; 11 var s = 0; 12 if(t >= 0){ 13 // Conversion of day, hour, minute, and second 14 // d = Math.floor(t/86400000) 15 // t -= d * 86400000; 16 h = Math.floor(t/3600000) 17 t -= h * 3600000; 18 m = Math.floor(t/60000) 19 t -= m * 60000; 20 s = Math.floor(t/1000) 21 22 // Hour, minute, and second are singular hours, with zero added to the front station 23 if(d < 10) 24 d = "0" + d; 25 if(h < 10) 26 h = "0" + h; 27 if(m < 10) 28 m = "0" + m; 29 if(s < 10) 30 s = "0" + s; 31 32 // Display time 33 $(this).find('.time-d').html(d); 34 $(this).find('.time-h').html(h); 35 $(this).find('.time-m').html(m); 36 $(this).find('.time-s').html(s); 37 }else{ 38 if (t > -1000) { 39 location.reload(); 40 } 41 $(this).hide(); 42 $(this).next().hide(); 43 $(this).find('.time-m').html(0); 44 $(this).find('.time-s').html(0); 45 } 46 }) 47 } 48 setInterval(GetRTime, 1000); 49}());
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.