forked from ivantsov/simpleTimer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
61 lines (56 loc) · 1021 Bytes
/
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
<!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: 200px 0;
text-align: center;
}
h1 {
font-size: 48px;
color: #c0d6ee;
}
h2 {
font-size: 256px;
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 */
$().simpleTimer({
date : '24/21/25/30',
format : 'hour',
action : function(){
alert("Example");
}
});
});
</script>
</head>
<body>
<section>
<div class="center">
<h1>Time left:</h1>
<h2 id="timer">
</h2>
</div>
</section>
</body>
</html>