var DOM = Syndicate.DOM.DOM; $(document).ready(function () { ground dataspace G { Syndicate.DOM.spawnDOMDriver(); Syndicate.Timer.spawnTimerDriver(); actor { react { assert DOM('#clock', 'clock', ''+ ''+ ''+ '') when (typeof this.angle === 'number'); on message Syndicate.Timer.periodicTick(1000) { this.angle = ((((Date.now() / 1000) % 60) / 60) - 0.25) * 2 * Math.PI; this.handX = 50 + 40 * Math.cos(this.angle); this.handY = 50 + 40 * Math.sin(this.angle); } } } } });