html5-simple-date-input-polyfill.js
function addcalendarExtenderToDateInputs () {
  //get and loop all the input[type=date]s in the page that dont have "haveCal" class yet
  var dateInputs = document.querySelectorAll('input[type=date]:not(.haveCal)');
  [].forEach.call(dateInputs, function (dateInput) {
    //call calendarExtender function on the input
    new calendarExtender(dateInput);
    //mark that it have calendar
    dateInput.classList.add('haveCal');
  });
}
function addcalendarExtenderToDateInputs () {
  //get and loop all the input[type=date]s in the page that dont have "haveCal" class yet
  var dateInputs = document.querySelectorAll('input[type=date]:not(.haveCal)');
  [].forEach.call(dateInputs, function (dateInput) {
    //call calendarExtender function on the input
    new calendarExtender(dateInput);
    //mark that it have calendar
    dateInput.classList.add('haveCal');
  });
}
function addcalendarExtenderToDateInputs ( ) { //get and loop all the input[type=date]s in the page that dont have "haveCal" class yet var dateInputs = document . querySelectorAll ( 'input[type=date]:not(.haveCal)' ) ; [ ] . forEach . call ( dateInputs , function ( dateInput ) { //call calendarExtender function on the input new calendarExtender ( dateInput ) ; //mark that it have calendar dateInput . classList . add ( 'haveCal' ) ; } ) ; }
will add the calendarExtender to all inputs in the page
will add the calendarExtender to all inputs in the page