-
Notifications
You must be signed in to change notification settings - Fork 1
/
hud01.html
31 lines (31 loc) · 855 Bytes
/
hud01.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
<!--
Author: Josh Gillham
Version: 10-16-12
Descriptio:
Updates the clock with a system time.
-->
<!DOCTYPE html>
<html>
<head>
<!-- Formatting information -->
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<!-- Page title -->
<title>Clock</title>
<!-- Load Paper.js libray -->
<script type="text/javascript" src="paper.js"></script>
<!-- Start Paperscript -->
<script type="text/paperscript" canvas="myCanvas">
// Called every 1/60th of a second.
function onFrame( ) {
// Get the current system time.
var now = new Date();
// Update clock with current time.
document.getElementById('clock').innerHTML = now;
}
</script>
</head>
<body>
<!-- Displays the system time -->
<label id="clock">test</label>
</body>
</html>