-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample.html
More file actions
40 lines (39 loc) · 815 Bytes
/
example.html
File metadata and controls
40 lines (39 loc) · 815 Bytes
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
<!DOCTYPE 5>
<html>
<head>
<title>Pie</title>
<link rel="stylesheet" href="build/build.css">
<link rel="icon" href="favicon.ico">
<style>
body {
background: #EBEBEB;
padding: 150px;
}
canvas {
margin: 10px;
}
.big-pie {
color: #5d8dc7;
background: #78b5ff;
border: 1px solid white;
}
</style>
</head>
<body>
<script src="build/build.js"></script>
<script>
var Piecon = require('piecon');
var pie = new Piecon;
setTimeout(function(){
var n = 0;
var id = setInterval(function(){
pie.update(n++);
if (n >= 100) {
clearInterval(id);
pie.reset();
}
}, 50);
}, 1500);
</script>
</body>
</html>