Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
PitPik committed Jul 24, 2016
1 parent d9908b3 commit e3d6304
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion datePicker.css
Expand Up @@ -77,7 +77,7 @@
height: 28px;
box-sizing: border-box;

background-color: #555;
background-color: rgba(255, 255, 255, .1);
border-radius: 50%;
z-index: -1;
}
Expand Down
6 changes: 2 additions & 4 deletions index.html
Expand Up @@ -128,7 +128,7 @@ <h2>calendar.js</h2>
*
* @return {String} String of date in format 'YYYY-MM-DD'
*/
var disableBeforeToday = function() {
var getTodayString = function() {
var today = new Date();

return today.getFullYear() + '-' +
Expand Down Expand Up @@ -299,10 +299,8 @@ <h2>calendar.js</h2>
// Example with marked range days.
// ------------------------------------------------------------ //
// first set input fields to a minimum date
var minDate = disableBeforeToday();

[].map.call(document.querySelectorAll('.date-11'), function(elm, a) {
elm.setAttribute('data-mindate', minDate);
elm.setAttribute('data-mindate', getTodayString());
});

window.myDatePicker_11 = new DatePicker('.date-11', extend({
Expand Down

0 comments on commit e3d6304

Please sign in to comment.