-
Notifications
You must be signed in to change notification settings - Fork 2
/
hoverpick.time.html
46 lines (43 loc) · 1.42 KB
/
hoverpick.time.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>MooTimePick</title>
<link rel="stylesheet" href="css/hoverpick.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<script src="src/mootools-1.2.1-core-nc.js" type="text/javascript" charset="utf-8"></script>
<script src="src/hoverpick.0.1.js" type="text/javascript" charset="utf-8"></script>
<script src="src/hoverpick.time.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
window.addEvent('domready',function(){
myTimePick1 = new HoverPick.Time('timePick1', {});
myTimePick2 = new HoverPick.Time('timePick2', {
hours: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],
amPm: [],
format: "HH:MM",
resetOnHide: false
});
});
</script>
<style type="text/css" media="screen">
body{
font-family: calibri, Helvetica;
}
input {
width: 75px
}
</style>
</head>
<body>
<h1>HoverPick.Time Class</h1>
<h2>12h, HH:MM aa, Reset Choice on Hide</h2>
<p>
<input type="text" name="time" id="timePick1" /><br>
</p>
<br><br><br><br><br><br><br><br>
<h2>24h, HH:MM, Remember Choice on Hide</h2>
<p>
<input type="text" name="time" id="timePick2" /><br>
</p>
</body>
</html>