forked from JohnRDOrazio/jQuery-Clock-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
93 lines (80 loc) · 3.81 KB
/
Copy pathindex.html
File metadata and controls
93 lines (80 loc) · 3.81 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>index</title>
<meta name="description" content="" />
<meta name="generator" content="Studio 3 http://aptana.com/" />
<meta name="author" content="don John" />
<meta name="viewport" content="width=device-width; initial-scale=1.0" />
<!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="stylesheet" type="text/css" href="jqClock.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="jqClock.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$.clock.locale = {"pt":{"weekdays":["Domingo","Segunda-feira", "Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira", "Sábado"],"months":["Janeiro","Fevereiro","Março","Abril", "Maio","Junho","Julho","Agosto","Setembro","October","Novembro", "Dezembro"] } };
$("#clock1").clock();
$("#clock2").clock({"langSet":"it"});
$("#clock3").clock({"langSet":"pt"});
$("#clock4").clock({"format":"24","calendar":"false"});
customtimestamp = new Date();
customtimestamp = customtimestamp.getTime();
customtimestamp = customtimestamp+1123200000+10800000+14000;
$("#clock5").clock({"timestamp":customtimestamp});
$("#destroyclock1").click(function(){ $("#clock1").clock("destroy") });
$("#destroyclock2").click(function(){ $("#clock2").clock("destroy") });
$("#destroyclock3").click(function(){ $("#clock3").clock("destroy") });
$("#destroyclock4").click(function(){ $("#clock4").clock("destroy") });
$("#destroyclock5").click(function(){ $("#clock5").clock("destroy") });
});
</script>
</head>
<body>
<div>
<header>
<h1>index</h1>
</header>
<h1>Example page for Lwangaman's dynamic jquery clock plugin</h1>
<div style="clear:both;">
<h2>Clock that uses default options</h2>
<div id="clock1">This div will be turned into a dynamic clock</div>
<button id="destroyclock1">DESTROY CLOCK 1</button>
</div>
<hr style="clear:both;" />
<div style="clear:both;">
<h2>Clock that uses included italian language</h2>
<div id="clock2">This div will be turned into a dynamic clock</div>
<button id="destroyclock2">DESTROY CLOCK 2</button>
</div>
<hr style="clear:both;" />
<div style="clear:both;">
<h2>Clock that uses extended portoguese language</h2>
<div id="clock3">This div will be turned into a dynamic clock</div>
<button id="destroyclock3">DESTROY CLOCK 3</button>
</div>
<hr style="clear:both;" />
<div style="clear:both;">
<h2>Clock in 24 hour format, without calendar</h2>
<div id="clock4">This div will be turned into a dynamic clock</div>
<button id="destroyclock4">DESTROY CLOCK 4</button>
</div>
<hr style="clear:both;" />
<div style="clear:both;">
<h2>Clock with custom timestamp (13 days, 3 hours and 14 seconds ahead)</h2>
<div id="clock5">This div will be turned into a dynamic clock</div>
<button id="destroyclock5">DESTROY CLOCK 5</button>
</div>
<hr style="clear:both;" />
<h2>The advantage of this clock plugin is that it can also handle a server timestamp! Unfortunately it is not possible to give an example of this on jsbin.</h2>
<footer>
<p>© Copyright 2011 by Lwangaman <a href="mailto:donjohn.fmmi@gmail.com"></a> </p>
</footer>
</div>
</body>
</html>