Mercurial > gui
view examples/countdown.ur @ 24:d314d2ec3300
Be able to obtain the name from a navItem
author | Ron de Bruijn <rmbruijn@gmail.com> |
---|---|
date | Sun, 04 Dec 2011 16:45:31 +0100 |
parents | 2947170fcfd6 |
children |
line wrap: on
line source
fun main () : transaction page = start <- now; deadline <- return (addSeconds start 60); cl <- Clock.create 500; return <xml><body onload={Clock.start cl}> <dyn signal={cl <- Clock.signal cl; return <xml> {[cl]}<br/> {if cl > deadline then <xml><b>Expired</b></xml> else <xml>{[diffInSeconds cl deadline]}</xml>} </xml>}/> </body></xml>