Poor man's digital clock

I have been doing more and more ATS+JS co-programming. Mostly it is for the
purpose of
teaching. I feel that people taking my class in general like this kind of
stuff.

Here is a digital clock implemented in ATS + a bit of JS and HTML:


This example is so straightforward that I think one should be able to
follow it without much difficulty.

Here is a simple demo of the clock:

http://ats-lang.sourceforge.net/COMPILED/doc/PROJECT/SMALL/JSclock/myclock2.html

Have fun!

–Hongwei