-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathanalogclock.html
39 lines (35 loc) · 1.42 KB
/
analogclock.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>jsAnalogClock</title>
<script type='text/javascript' src='analogclock.js'></script>
</head>
<!-- Working on fixing up the commonly found HTML5 clock -->
<!-- Making it soft first, then create a clock object and related part -->
<!-- (C) Sandy Ganz 2014-2015 sganz@pacbell.net -->
<body onLoad="runOnLoad();">
<h1>Javascript Analog Clock Hack by Sandy Ganz</h1>
<canvas id="analog-clock"></canvas>
<canvas id="analog-clock1"></canvas>
<p>
<a href="http://www.wtfpl.net/"><img
src="http://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-badge-4.png"
width="80" height="15" alt="WTFPL" /></a>
<p>We Proudly Support WTFPL for licensing</p>
<h2>Here is the link to the project so you can mess with the code</h2>
<a href="http://jsfiddle.net/sganz/t20qv4rt/">jsFiddle Link</a><br />
<a href="https://github.com/sganz/analogclock.git">GitHub Javascript Repo (More Current then jsFiddle)</a>
</p>
<script type="text/javascript">
function runOnLoad()
{
var a1 = myclock1('analog-clock');
var a2 = myclock2('analog-clock1',
[{start:"08:00",end:"09:00",subject:"test1"},
{start:"10:00",end:"12:30",subject:"test2"},
{start:"14:00",end:"16:30",subject:"test3"}],{});
}
</script>
</body>
</html>