PageSourceSearch

https://safina.tj/clock/clockscript.js

js safina.tj collected 2026-10-03 00:31:43 UTC 1,225 bytes, 43 lines download raw bytes

1// JavaScript Document
2
3var dayarray=new Array("( Якшанбе )","( Душанбе )","( Сешанбе )","( Чоршанбе )","( Панҷшанбе )","( Ҷумъа )","( Шанбе )")
4
5function getthedate(){
6var mydate=new Date()
7mydate=new Date(mydate.getFullYear(), mydate.getMonth(), mydate.getDate(), mydate.getHours(), mydate.getMinutes(), mydate.getSeconds())
8var year=mydate.getYear()
9if (year < 1000)
10year+=1900
11var day=mydate.getDay()
12var month=mydate.getMonth()
13var daym=mydate.getDate()
14if (daym<10)
15daym="0"+daym
16month=month+1
17if (month<10)
18month="0"+month
19var hours=mydate.getHours()
20var minutes=mydate.getMinutes()
21var seconds=mydate.getSeconds()
22if (hours<=9)
23hours="0"+hours
24if (minutes<=9)
25minutes="0"+minutes
26if (seconds<=9)
27seconds="0"+seconds
28//change font size here
29var cdate="<b>"+hours+":"+minutes+":"+seconds+"</b> " + dayarray[day]+" <b>"+daym+"."+month+"."+year+"</b>"
30
31if (document.all)
32document.all.clock.innerHTML=cdate
33else if (document.getElementById)
34document.getElementById("clock").innerHTML=cdate
35else
36document.write(cdate)
37}
38if (!document.all&&!document.getElementById)
39getthedate()
40function goforit(){
41if (document.all||document.getElementById)
42setInterval("getthedate()",1000)
43}

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.