Clock
This example shows a large, purely typographic digital clock displaying the current time in a monospace font, updating every second. It demonstrates how to build a custom WebComponent using the X-Tag library, with the clock’s text content refreshed via a `setInterval` callback. The rendering uses CSS text-shadow to create a glowing, layered black outline on a white background, giving the time a bold, high-contrast appearance. The component also responds to a `tap` event to toggle the clock between running and stopped states, illustrating lifecycle and event handling within X-Tag’s custom element registration. The data source is the browser’s `Date` object, formatted with `toLocaleTimeString`.
AI-generated descriptionA clock.
This is a copy of the clock WebComponent on the X-Tag Site, with slight modifications for style only. This demonstrates how you can make WebComponents with the X-Tag library.
See also:
Built with blockbuilder.org
<!-- Start of SimpleHitCounter Code --> <div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=1985419&f=16777215&b=0" border="0" height="18" width="83" alt="web counter"></a></div> <!-- End of SimpleHitCounter Code -->