1$(function(){ 2 3 var note = $('#note'), 4 ts = new Date(2015, 2, 21), 5 newYear = true; 6 7 if((new Date()) > ts){ 8 // The new year is here! Count towards something else. 9 // Notice the *1000 at the end - time must be in milliseconds 10 ts = (new Date()).getTime() + 10*24*60*60*1000; 11 newYear = false; 12 } 13 14 $('#countdown').countdown({ 15 timestamp : ts, 16 callback : function(days, hours, minutes, seconds){ 17 18 var message = ""; 19 20 message += "<span class='countdownTimerNum'>"+ days + "</span> day" + ( days==1 ? '':'s' ) + ", "; 21 message += "<span class='countdownTimerNum'>"+ hours + "</span> hour" + ( hours==1 ? '':'s' ) + ", "; 22 message += "<span class='countdownTimerNum'>"+ minutes + "</span> minute" + ( minutes==1 ? '':'s' ) + " and "; 23 message += "<span class='countdownTimerNum'>"+ seconds + "</span> second" + ( seconds==1 ? '':'s' ) + " <br />"; 24 25 26 note.html(message); 27 } 28 }); 29 30});
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.