-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathexample.html
More file actions
28 lines (26 loc) · 722 Bytes
/
example.html
File metadata and controls
28 lines (26 loc) · 722 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
<!DOCTYPE html>
<html>
<head>
<title>PieTimer example</title>
<link rel="stylesheet" type="text/css" href="pietimer.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.pietimer.js"></script>
<script type="text/javascript">
$(function() {
$('#timer').pietimer({
timerSeconds: 10,
color: '#234',
fill: false,
showPercentage: true,
callback: function() {
alert("yahoo, timer is done!");
$('#timer').pietimer('reset');
}
});
});
</script>
</head>
<body>
<div id="timer"></div>
</body>
</html>