Created
June 30, 2013 14:55
-
-
Save LyndonArmitage/5895450 to your computer and use it in GitHub Desktop.
The HTML5 file for the analog clock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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