- 1
- 2
- 3
- 4
- 5
var id = setTimeout(function timer() {
var d = new Date()
document.getElementById('text').innerHTML = (d.getHours() < 10 ? '0'+d.getHours() : d.getHours())+':'+(d.getMinutes() < 10 ? '0'+d.getMinutes() : d.getMinutes() )+':'+(d.getSeconds() < 10 ? '0'+d.getSeconds() : d.getSeconds())
id = setTimeout(timer, 1000)
}, 1000)
syoma 30.12.2017 11:52 # +1
cykablyad 30.12.2017 16:18 # +1
1024-- 30.12.2017 17:26 # 0
bormand 30.12.2017 18:40 # 0
1024-- 30.12.2017 19:21 # 0
guest8 25.05.2019 22:25 # −999