forked from Reflejo/jquery-countdown
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
37 lines (34 loc) · 921 Bytes
/
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
<!DOCTYPE>
<html>
<head>
<title>jquery-countdown plugin test</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="js/jquery.countdown.js"></script>
<link href="css/media.css" rel="stylesheet" type="text/css" />
<script>
$(function(){
var $_GET = {};
document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () {
function decode(s) {
return decodeURIComponent(s.split("+").join(" "));
}
$_GET[decode(arguments[1])] = decode(arguments[2]);
});
$(".digits").countdown({
image: "img/digits.png",
format: "hh:mm:ss",
endTime: $_GET['timer']
});
});
</script>
</head>
<body>
<div class="wrapper">
<div class="cell">
<div id="holder">
<div class="digits"></div>
</div>
</div>
</div>
</body>
</html>