-
-
Notifications
You must be signed in to change notification settings - Fork 58
/
index.html
62 lines (60 loc) · 2.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="dateinput-polyfill-media" content="screen">
<meta name="dateinput-polyfill-format" content='{"month":"short","year":"numeric","day":"numeric"}'>
<title>better-dateinput-polyfill demo</title>
<style>
body {
background: #fefefe;
margin: 16px;
overflow: hidden;
}
body, input, button {
font-size: 20px;
}
input {
border-radius: 4px;
border: 2px solid #777;
box-sizing: border-box;
font-family: monospace;
padding: 4px;
width: 250px;
}
</style>
</head>
<body>
<form class="test-form" autocomplete="off">
<p>
<label>Your name<br></label>
<input type="text" name="name" placeholder="Dart Vaider">
</p>
<p>
<label>Start date<br></label>
<input type="date" name="start" required value="2000-01-01" placeholder="Party begins" style="background:yellow">
</p>
<p>
<label>End date<br></label>
<input type="date" name="end" placeholder="Party ends" min="2014-11-01" max="2016-01-15" >
</p>
<p>
<label>This field is disabled<br></label>
<input type="date" placeholder="Disabled input" disabled>
</p>
<p>
<label>This field is readonly<br></label>
<input type="date" readonly value="2012-01-01">
</p>
<p>
<label>This field is hidden<br></label>
<input type="date" name="hidden" data-format="{}" placeholder="Hidden input" style="display:none;background:blue;color:white"><button type="button" style="position:relative" onclick="this.style.display='none';this.previousSibling.style.display=''">Show dateinput</button>
</p>
<button type="submit">Submit</button>
<button type="reset">Reset</button>
</form>
<script src="build/better-dateinput-polyfill.js"></script>
</body>
</html>