Get the files

You can download a zip file and extract it

OR

if you use a version control client you can checkout the sources of the project. It will make it easier to keep the files up to date.


SVN Checkout

Checkout sources with svn client.
The following commands create a directory anclock below webroot and put all files there:

cd [webroot-directory]/[install-dir]
svn checkout svn://svn.code.sf.net/p/anclock/code/trunk anclock

Download


Get the latest version:
Download

Extract the files somewhere below webroot on your webserver. You can put to any subdirectory.


Add clock to your website


The following codesnippet shows the most simple steps to integrate a basic clock into your website.

<html>
	<head>
		(...)
		<!-- step 1: add the javascript file -->
		<script src="/javascript/anclock/anclock.class.js"></script>
	</head>
	<body>
		(...)
		
		<!-- step 2: create a div element with an id as placeholder -->
		<div id="myclock"></div>
		
		(...)
		
		<!-- step 3: init clock - use the id as parameter -->
		<script>
			var oClock=new Anclock("myclock");
		</script>
	</body>
</html>

The code above creates the clock below. It shows the local time of your computer.



See Customization for more details with all supported functions.







Copyright © 2016-2022 Axel Hahn
project page: Sourceforge (en)
Axels Webseite (de)
results will be here