Skip to content

Instantly share code, notes, and snippets.

@LyndonArmitage
Created June 30, 2013 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LyndonArmitage/5895450 to your computer and use it in GitHub Desktop.
Save LyndonArmitage/5895450 to your computer and use it in GitHub Desktop.
The HTML5 file for the analog clock
<!DOCTYPE html>
<html>
<head>
<title>Clock</title>
<style type="text/css">
#container {
margin: 0 auto;
width: 800px;
text-align: center;
border: black dashed 1px;
font-family: sans-serif;
}
</style>
</head>
<body>
<div id="container">
<h2>Analog Clock Example</h2>
<canvas id="analogClock" width="102" height="102">Clock</canvas>
<p>A simple example of an analog clock made using the canvas.</p>
<p>By Lyndon Armitage</p>
</div>
<script type="text/javascript" src="js/analogCanvasClock.js"></script>
<script type="text/javascript">
setupAnalogClock(document.getElementById("analogClock"), 100);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment