-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample.html
78 lines (71 loc) · 1.35 KB
/
example.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html>
<head>
<title>Simple timer</title>
<meta charset="utf-8" />
<style>
* {
border-collapse: collapse;
margin: 0;
padding: 0;
font-family: Tahoma, Arial;
}
html, body {
min-width: 1040px;
}
body {
background: #1f2832;
}
.center {
padding-top: 100px;
text-align: center;
}
h1 {
font-size: 48px;
color: #c0d6ee;
}
h2 {
font-size: 200px;
color: #fff;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="simpleTimer.js"></script>
<script>
$(document).ready(function(){
/* date it's: DAY, HOUR, MIN, SEC of event */
$("#timer1").simpleTimer({
date : '25/21/21/21',
format : 'day',
action : function(){
alert("Example");
}
});
$("#timer2").simpleTimer({
date : '24/23/25/30',
format : 'hour',
action : function(){
alert("Example");
}
});
$("#timer3").simpleTimer({
date : '23/9/25/20',
format : 'min',
action : function(){
alert("Example");
}
});
});
</script>
</head>
<body>
<section>
<div class="center">
<h1>Time left:</h1>
<h2 id="timer1"></h2>
<h2 id="timer2"></h2>
<h2 id="timer3"></h2>
</div>
</section>
</body>
</html>