{"size": 1986, "ext": "js", "max_stars_repo_path": "node_modules/bulma-extensions/bulma-calendar/src/demo/assets/js/main.js", "max_stars_repo_name": "biobun/projectonmaca", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "node_modules/bulma-extensions/bulma-calendar/src/demo/assets/js/main.js", "max_issues_repo_name": "biobun/projectonmaca", "max_issues_repo_issues_event_min_datetime": "2020-07-16T15:31:17.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-08T00:23:25.000Z", "max_forks_repo_path": "node_modules/bulma-extensions/bulma-calendar/src/demo/assets/js/main.js", "max_forks_repo_name": "biobun/projectonmaca", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 26.48, "max_line_length": 69, "alphanum_fraction": 0.6485397784}
ready(function () {
  bulmaCalendar.attach('#datepickerDemoInline');
  bulmaCalendar.attach('#datepickerDemoInlineRange');

  calendars = bulmaCalendar.attach('#datepickerDemoDefault', {
    dateFormat: 'DD/MM/YYYY',
    clearButton: false
  });
  [].forEach.call(calendars, function (calendar) {
    calendar.on('datepicker:date:selected', function (datePicker) {
      alert('Selected date: ' + datePicker.date);
    });
  });

  bulmaCalendar.attach('#datepickerDemoDialog', {
    displayMode: 'dialog',
    dateFormat: 'D/M/YYYY',
    startDate: new Date('02/11/2018'),
    minDate: '01/01/2018',
    maxDate: '12/31/2018',
    lang: 'fr'
  });

  bulmaCalendar.attach('#datepickerDemoDisabledDates', {
    displayMode: 'dialog',
    disabledDates: [
      new Date(new Date().getTime() - 24 * 60 * 60 * 1000),
      new Date(new Date().getTime() + 24 * 60 * 60 * 1000)
    ]
  });

  bulmaCalendar.attach('#datepickerDemoDisabledWeekDays', {
    displayMode: 'dialog',
    disabledWeekDays: '0,6'
  });

  bulmaCalendar.attach('#datepickerDemoWeekStart', {
    displayMode: 'dialog',
    weekStart: 1
  });

  bulmaCalendar.attach('#datepickerDemoLabels', {
    displayMode: 'inline',
    isRange: true,
    labelFrom: 'Check-in',
    labelTo: 'Check-out'
  });

  var datepicker = bulmaCalendar.attach('#datepickerDemoTrigger', {
    displayMode: 'dialog',
    toggleOnInputClick: false,
    closeOnSelect: false
  });

  var trigger = document.querySelector('#datepicker-trigger');
  if (trigger) {
    trigger.addEventListener('click', function (e) {
      datepicker[0].show();
    });
  }

  var datepicker2 = bulmaCalendar.attach('#datepickerDemoTrigger2', {
    displayMode: 'dialog',
    isRange: true,
    labelFrom: 'Check-in',
    labelTo: 'Check-out',
    toggleOnInputClick: false
  });
  var trigger2 = document.querySelector('#datepicker-trigger2');
  if (trigger2) {
    trigger2.addEventListener('click', function (e) {
      datepicker2[0].show();
    });
  }
});