-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (47 loc) · 1.29 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
47
<!DOCTYPE html>
<html>
<head>
<title>jQuery Countdown</title>
<script type="text/javascript" src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js?ver=1.7.1'></script>
<script src="jquery.countdown.js" type="text/javascript"></script>
<script>
$(function(){
$("#countdown-1").countdown({
start_date: 1337210800000,
end_date: 1337326800000,
format: "%dddd, %hhhh, %mmmm och %ssss",
labels: { day: ["dag", "dagar"], hour: ["timme", "timmar"], minute: ["minut", "minuter"], second: ["sekund", "sekunder"] },
start: function($element) {
console.log("The final countdown has begun");
},
done: function($element) {
console.log("The counter is at zero");
},
tick: function($element, values) {
console.log(values);
}
});
$("#countdown-2").countdown({
start_date: 1337210800000,
end_date: 1337326800000,
format: "%ddd, %hhh, %mmm and %sss",
});
$("#countdown-3").countdown({
start_date: 1337210700000,
end_date: 1337210800000
});
$("#countdown-4").countdown({
start_date: 1337210700000,
end_date: 1337210800000,
format: "%h:%m:%s"
});
});
</script>
</head>
<body>
<h2 id="countdown-1"></h2>
<h2 id="countdown-2"></h2>
<h2 id="countdown-3"></h2>
<h2 id="countdown-4"></h2>
</body>
</html>