-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (39 loc) · 1.13 KB
/
index.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
40
41
42
43
44
45
46
<!doctype html>
<html>
<head>
<link rel='stylesheet' href='css/pie-countdown.css' />
<link rel='stylesheet' href='css/bootstrap.min.css' />
</head>
<body>
<div class='container'>
<div class='row'>
<h3>pie-countdown</h3>
<p>
<a href='#'>about</a>
|
<a href='https://github.com/yosemitebandit/pie-countdown'>github</a>
</p>
<p>press space to start</p>
<div id='pie-plate'></div>
</div>
</div>
<script src='js/jquery.min.js'></script>
<script src='js/pie-countdown.js'></script>
<script>
$(function() {
var timer = new Timer(
'pie-plate' // id of the div where we're dropping the pie
, 40 // radius of the pie in pixels
, '#ff3d3d' // color of the pie
, '#1fb4ff' // background color (color of the masking quadrant)
, 10 // seconds on the clock
);
$('html').keypress(function(event) {
if ( event.which == 32 ) { // spacebar
timer.start();
}
});
});
</script>
</body>
</html>