forked from chrishulbert/datepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatepicker-example.html
More file actions
50 lines (38 loc) · 1.82 KB
/
datepicker-example.html
File metadata and controls
50 lines (38 loc) · 1.82 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Date Picker Example</title>
<link rel="stylesheet" type="text/css" href="datepicker.css" />
<script type="text/javascript" src="datepicker.js"></script>
<script type="text/javascript" src="timepicker.js"></script>
<style>
input {
font-family:monospace;
}
</style>
</head>
<body>
<h1>Date Picker Example</h1>
<p>Start Date / Time:<br />
<input id="start_dt" class='datepicker' size='11' title='D-MMM-YYYY' />
<input id="start_tm" class='timepicker' size='5' title='HH:MM' />
</p>
<p>End Date:<br />
<input id="end_dt" class='datepicker' size='11' title='D-MMM-YYYY' />
<input id="end_tm" class='timepicker' size='5' title='HH:MM' />
</p>
<h2>How to use these pickers in your app:</h2>
<p>Put the following 2 or 3 lines in your page's <head> section:</p>
<pre><link rel="stylesheet" type="text/css" href="datepicker.css" />
<script type="text/javascript" src="datepicker.js"></script>
<script type="text/javascript" src="timepicker.js"></script></pre>
<p>On any <input> that you want to have a date picker for, set/add the 'datepicker' class:</p>
<pre><input id='start_dt' class='datepicker'>
<input id='another_dt' class='myclass datepicker'></pre>
<p>On any <input> that you want to have a time picker for, set/add the 'timepicker' class:</p>
<pre><input id='start_dt' class='timepicker'>
<input id='another_dt' class='myclass timepicker'></pre>
<p>I hope you enjoy these pickers as much as I enjoyed getting it working cross-browser :)</p>
</body>
</html>