input-time-polyfill
Version:
Automatically adds timepickers to input[type=time] on IE and OS X Safari.
23 lines (22 loc) • 578 B
HTML
<html style="height: 100%">
<head>
<meta charset="UTF-8" />
<title>Polyfill Test</title>
<meta name="description" content="Polyfill Test" />
<meta
name="viewport"
content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes"
/>
</head>
<body style="width: 100%; height: 100%">
<p>Native:
<input type="time" />
</p>
<p>
Polyfill:
<input class="time-polyfill" type="text" value="19:04" />
</p>
<script src="input-time-polyfill.dist.js"></script>
</body>
</html>