1var months = ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember']; 2var myDays = ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jum'at', 'Sabtu']; 3var date = new Date(); 4var day = date.getDate(); 5var month = date.getMonth(); 6var thisDay = date.getDay(), 7 thisDay = myDays[thisDay]; 8var yy = date.getYear(); 9var year = (yy < 1000) ? yy + 1900 : yy; 10document.getElementById('date').innerHTML=thisDay + ', ' + day + ' ' + months[month] + ' ' + year ; 11 12function showTime() { 13 var a_p = ""; 14 var today = new Date(); 15 var curr_hour = today.getHours(); 16 var curr_minute = today.getMinutes(); 17 var curr_second = today.getSeconds(); 18 if (curr_hour < 12) { 19 a_p = "AM"; 20 } else { 21 a_p = "PM"; 22 } 23 if (curr_hour == 0) { 24 curr_hour = 12; 25 } 26 if (curr_hour > 12) { 27 curr_hour = curr_hour - 12; 28 } 29 curr_hour = checkTime(curr_hour); 30 curr_minute = checkTime(curr_minute); 31 curr_second = checkTime(curr_second); 32 document.getElementById('clock').innerHTML=curr_hour + ":" + curr_minute + ":" + curr_second + " " + a_p; 33 } 34 35function checkTime(i) { 36 if (i < 10) { 37 i = "0" + i; 38 } 39 return i; 40} 41setInterval(showTime, 500);
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.