1(function($) { 2 $.extend({ 3 clock: function clock(target){ 4 var d = new Date(); 5 var h = d.getHours(); 6 var m = d.getMinutes(); 7 var s = d.getSeconds(); 8 h = h<10?"0"+h:h; 9 m = m<10?"0"+m:m; 10 s = s<10?"0"+s:s; 11 // var time_str = h + ":" + m + ":" + s; 12 var time_str = h + ":" + m; 13 target.html(time_str); 14 setTimeout(function(){ 15 clock(target) 16 },1000); 17 } 18 }); 19})(jQuery); 20 21 22jQuery(document).ready(function($){ 23 $.clock($("#target")); 24});
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.