Right click this window and select "view source" in order to copy the source for this script.
On/Off Clock
Click ON button to start the clock,
OFF to stop it.
Clock Display With On And Off Switch
View the source...
This script is an example of providing options through on and off switches. It is a full working clock with time and date display. Very small code size.