-
Notifications
You must be signed in to change notification settings - Fork 6
/
test.html
26 lines (25 loc) · 895 Bytes
/
test.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
<script type="application/javascript" src="clock.js"></script>
</head>
<body>
<noscript>JavaScript demos are pretty boring if you've disabled JavaScript.</noscript>
<script type="application/javascript">
document.writeln('<h1>Interval Period Test</h1>');
document.writeln('<ul>');
var ms = ((((((10 * 24) + 5) * 60) + 15) * 60) + 30) * 1000, interval;
for (var periods = 5; periods >= 0; periods--) {
interval = new Clock.Interval(ms, periods);
document.writeln('<li>' + periods + ': ' + interval.toString() + '</li>');
}
interval = new Clock.Interval(ms, true);
document.writeln('<li>true: ' + interval.toString() + '</li>');
interval = new Clock.Interval(ms, false);
document.writeln('<li>false: ' + interval.toString() + '</li>');
document.writeln('</ul>');
</script>
</body>
</html>