Sha256: faac257169ed6a24483fa408007291758b1b0e52f596bdb3fe37f28d33b8bb80
Contents?: true
Size: 389 Bytes
Versions: 56
Compression:
Stored size: 389 Bytes
Contents
class Dashing.Clock extends Dashing.Widget ready: -> setInterval(@startTime, 500) startTime: => today = new Date() h = today.getHours() m = today.getMinutes() s = today.getSeconds() m = @formatTime(m) s = @formatTime(s) @set('time', h + ":" + m + ":" + s) @set('date', today.toDateString()) formatTime: (i) -> if i < 10 then "0" + i else i
Version data entries
56 entries across 56 versions & 7 rubygems