datepicker: update README and TODO, only support IE10+ - jscancer - Javascript … | |
git clone git://git.codemadness.org/jscancer | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit dbeaa14c679d2cdde4b53ecec1d17f2735ab5d56 | |
parent 70c0a2de548b115364be4d4f6c5f7d087588eb67 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Thu, 2 Jun 2016 18:42:53 +0200 | |
datepicker: update README and TODO, only support IE10+ | |
Diffstat: | |
M datepicker/README | 11 ++++++----- | |
M datepicker/TODO | 38 ++---------------------------… | |
2 files changed, 8 insertions(+), 41 deletions(-) | |
--- | |
diff --git a/datepicker/README b/datepicker/README | |
@@ -8,16 +8,18 @@ FEATURES | |
-------- | |
- Small: | |
- - Filesize: +- 6.3KB. | |
- - Lines: +- 203, not much code, so hopefully easy to understand. | |
+ - Filesize: +- 6.4KB. | |
+ - Lines: +- 200, not much code, so hopefully easy to understand. | |
- No dependencies on other libraries like jQuery. | |
- "Graceful" fallback to the HTML5 datepicker if it is supported. | |
+- Supports min and max date attribute. | |
+- Support ISO weekdate (monday) or not (sunday). | |
- Permissive ISC license, see LICENSE file, feel free to contact me for | |
questions or other terms. | |
- Officially supported browsers are: | |
- Firefox and Firefox ESR. | |
- Chrome and most recent webkit-based browsers. | |
- - IE8+ (use compat.js). | |
+ - IE10+. | |
USAGE | |
@@ -27,8 +29,7 @@ USAGE | |
EXAMPLES | |
-------- | |
-See example.html and style.css for an example. A stylesheet file style.css | |
-is also included. | |
+See example.html for an example. | |
<input type="date" class="date" min="2016-01-01" max="2016-12-31" /> | |
diff --git a/datepicker/TODO b/datepicker/TODO | |
@@ -1,41 +1,7 @@ | |
-- dont use .onmousedown and event fallback, use addEventListener and compat.js. | |
- | |
-- disabled items doesn't work in IE8. | |
- | |
-- fix position when opening datepicker. | |
- | |
+? autocorrect: 2015-1-1 to 2015-01-01 etc? | |
? position: fixed incorrect for pages with height bigger than screen? | |
position: absolute? | |
if datepicker outside window scroll to it? | |
- | |
-Features: | |
-- supports min and max date (only checked with datepicker, not input field). | |
-- support ISO weekdate (monday) or not (sunday). | |
-- detects if browser supports native datepicker, fallback to this custom | |
- datepicker if it doesn't. | |
- | |
- | |
-TODO: | |
-x fix onblur when selecting months (order of events firing). | |
-- highlight previously selected date. | |
-- fix absolute position of datepicker. | |
+? fix absolute position of datepicker. | |
? position fixed? | |
-- when empty show current date / month. | |
-- when changing text in input use that to open the view (type 2015-01-01 and s… | |
-- autocorrect: 2015-1-1 to 2015-01-01 etc? | |
-- show days of previous month in some month view aswell? | |
-- add month and year. | |
-x by default use ISO week date (starts with monday). | |
-x add history prev and next buttons. | |
-x make datepicker position: absolute; | |
-x option to disable specific dates (day in week, before date, | |
- specific days). | |
-x option to set show sunday or monday first? | |
? add some hotkeys. | |
- | |
-// TODO | |
-//input.onblur = function() { | |
-// table.hidden = true; | |
-//}; | |
- | |
-max 185 lines. |