From e7bacd45e1b44090781067159b63fe14b46b8611 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 13 Dec 2016 14:12:55 -0500 Subject: Use HTML5 type=datetime-local inputs for ChartCoordinator. --- .../assets/css/jquerytools.dateinput.skin1.css | 157 ----------- docs/examples/index.html | 26 +- jarmon/external.doc.js | 6 - jarmon/jarmon.js | 301 ++++++++++----------- jarmonbuild/commands.py | 1 - 5 files changed, 143 insertions(+), 348 deletions(-) delete mode 100644 docs/examples/assets/css/jquerytools.dateinput.skin1.css diff --git a/docs/examples/assets/css/jquerytools.dateinput.skin1.css b/docs/examples/assets/css/jquerytools.dateinput.skin1.css deleted file mode 100644 index 2f77f6e..0000000 --- a/docs/examples/assets/css/jquerytools.dateinput.skin1.css +++ /dev/null @@ -1,157 +0,0 @@ -/* Skin for jQuery Tools dateinput. - * - * Based on . - * - * Documentation on dateinput skinning: - */ - -/* the input field */ -.date { - border:1px solid #ccc; - font-size:18px; - padding:4px; - text-align:center; - width:194px; - - box-shadow:0 0 10px #eee inset; - -moz-box-shadow:0 0 10px #eee inset; - -webkit-box-shadow:0 0 10px #eee inset; -} - -/* calendar root element */ -#calroot { - margin-top:-1px; - width:198px; - padding:2px; - background-color:#fff; - font-size:11px; - border:1px solid #ccc; - - border-radius:5px; - -moz-border-radius:5px; - -webkit-border-radius:5px; - - box-shadow: 0 0 15px #666; - -moz-box-shadow: 0 0 15px #666; - -webkit-box-shadow: 0 0 15px #666; -} - -/* head. contains title, prev/next month controls and possible month/year selectors */ -#calhead { - padding:2px 0; - height:22px; -} - -#caltitle { - font-size:14px; - color:#0150D1; - float:left; - text-align:center; - width:155px; - line-height:20px; - text-shadow:0 1px 0 #ddd; -} - -#calnext, #calprev { - display:block; - width:20px; - height:20px; - background:transparent url(../icons/prev.gif) no-repeat scroll center center; - float:left; - cursor:pointer; -} - -#calnext { - background-image:url(../icons/next.gif); - float:right; -} - -#calprev.caldisabled, #calnext.caldisabled { - visibility:hidden; -} - -/* year/month selector */ -#caltitle select { - font-size:10px; -} - -/* names of the days */ -#caldays { - height:14px; - border-bottom:1px solid #ddd; -} - -#caldays span { - display:block; - float:left; - width:28px; - text-align:center; -} - -/* container for weeks */ -#calweeks { - background-color:#fff; - margin-top:4px; -} - -/* single week */ -.calweek { - clear:left; - height:22px; -} - -/* single day */ -.calweek a { - display:block; - float:left; - width:27px; - height:20px; - text-decoration:none; - font-size:11px; - margin-left:1px; - text-align:center; - line-height:20px; - color:#666; - border-radius:3px; - -moz-border-radius:3px; - -webkit-border-radius:3px; -} - -/* different states */ -.calweek a:hover, .calfocus { - background-color:#ddd; -} - -/* sunday */ -a.calsun { - color:red; -} - -/* offmonth day */ -a.caloff { - color:#ccc; -} - -a.caloff:hover { - background-color:rgb(245, 245, 250); -} - - -/* unselecteble day */ -a.caldisabled { - background-color:#efefef !important; - color:#ccc !important; - cursor:default; -} - -/* current day */ -#calcurrent { - background-color:#498CE2; - color:#fff; -} - -/* today */ -#caltoday { - background-color:#333; - color:#fff; -} diff --git a/docs/examples/index.html b/docs/examples/index.html index b86fe91..44fae85 100644 --- a/docs/examples/index.html +++ b/docs/examples/index.html @@ -9,7 +9,6 @@ - @@ -20,26 +19,13 @@
-
- - calendar - - calendar - +
+ + + - - - - - - + +
diff --git a/jarmon/external.doc.js b/jarmon/external.doc.js index 119d1fb..10d9ea7 100644 --- a/jarmon/external.doc.js +++ b/jarmon/external.doc.js @@ -16,12 +16,6 @@ * @see https://api.jquery.com/jQuery.ajax/ */ -/** - * {@link http://jquerytools.github.io/ jQuery Tools} / dateinput - * @module jQueryTools/dateinput - * @see http://jquerytools.github.io/documentation/dateinput/index.html - */ - /** * {@link http://jquerytools.github.io/ jQuery Tools} / tabs * @module jQueryTools/tabs diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js index cef338b..f3f6e33 100644 --- a/jarmon/jarmon.js +++ b/jarmon/jarmon.js @@ -13,7 +13,6 @@ * - javascriptRRD/binaryXHR 0.6/1.1: http://javascriptrrd.sourceforge.net/docs/javascriptrrd_v1.1.1/doc/lib/binaryXHR_js.html * - jQuery 1.6.3: http://jquery.com/ * - Flot 1.7: http://www.flotcharts.org/ - * - jQueryTools/dateinput: http://jquerytools.github.io/documentation/dateinput/index.html * - jQueryTools/tabs: http://jquerytools.github.io/documentation/tabs/index.html * - jQueryTools/toolbox/history: http://jquerytools.github.io/documentation/toolbox/history.html */ @@ -1306,9 +1305,35 @@ jarmon.timeRangeShortcuts = [ * Presents the user with a form and a timeline with which they can choose a * time range and co-ordinates the refreshing of a series of charts. * + * The `ui` parameter should be a jQuery for a DOM node containing elements + * matching these selectors: + * + * - `select[name="shortcuts"]` : An empty `