-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
94 lines (78 loc) · 2.27 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
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
94
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>datepicky.js</title>
<style type="text/css" media="screen">
body {
margin: 3em;
}
.Datepicky {
font-family: sans-serif;
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.Datepicky .Clickable {
cursor: pointer;
}
.Datepicky .Clickable:hover {
background-color: #DDD;
}
.Datepicky table {
width: 500px;
border-collapse: collapse;
}
.Datepicky th {
font-size: 9px;
color: #888;
}
.Datepicky td {
font-size: 14px;
text-align: center;
height: 40px;
border: 1px solid #DDD;
width: 14.2857%;
}
.Datepicky td.Other {
color: #DDD;
}
.Datepicky td.Selected {
font-weight: bold;
background-color: #EEE;
}
.Datepicky table.YearMonth td {
font-size: 18px;
width: 20%;
text-align: center;
border: none;
}
.Datepicky table.YearMonth td.Other, .Datepicky table.YearMonth td.Clickable {
width: 15%;
}
input.InvalidDate {
background-color: #D33;
}
hr {
margin: 2em 0;
}
code {
background-color: #FFA;
margin: 0;
padding: 3px;
}
</style>
<script type="text/javascript" src="datepicky.min.js"></script>
</head>
<body>
<a href="https://github.com/pekeler/datepicky.js"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://a248.e.akamai.net/assets.github.com/img/30f550e0d38ceb6ef5b81500c64d970b7fb0f028/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67" alt="Fork me on GitHub"></a>
<h1>datepicky.js</h1>
<p>datepicky.js is a standalone javascript date picker, i.e. it has no library dependencies. While supporting the only date format that matters, ISO 8601 (YYYY-MM-DD), datepicky.js behavior can be easily customized for various use cases. It has been tested in IE6, IE7, IE8, IE9, FF5, Chrome 14, Safari 5, Safari iOS 4.3, and Opera 11.5.</p>
<input id="datefield1"><div id="pickerDiv1"></div>
<script type="text/javascript">
createDatepicky("datefield1", "pickerDiv1");
</script>
<p><a href="demo.html">Demo</a> of all possible customizations.</p>
</body>
</html>