{"size": 885, "ext": "js", "max_stars_repo_path": "src/_assets/javascripts/application.js", "max_stars_repo_name": "jgarber623/jasonandsamara.com", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/_assets/javascripts/application.js", "max_issues_repo_name": "jgarber623/jasonandsamara.com", "max_issues_repo_issues_event_min_datetime": "2017-11-12T23:24:09.000Z", "max_issues_repo_issues_event_max_datetime": "2020-07-15T20:40:01.000Z", "max_forks_repo_path": "src/_assets/javascripts/application.js", "max_forks_repo_name": "jgarber623/jasonandsamara.com", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 10, "max_forks_count": null, "avg_line_length": 25.2857142857, "max_line_length": 98, "alphanum_fraction": 0.6248587571}
//= require_tree ./components

(function(window) {
  'use strict';

  var Page = function() {
    this.navigation = new Navigation({
      $control: document.querySelector('#navigation-control'),
      $region: document.querySelector('#navigation-list')
    });

    new Timer({
      $timer: document.querySelector('#timer'),
      $days: document.querySelector('#timer-days'),
      $hours: document.querySelector('#timer-hours'),
      $minutes: document.querySelector('#timer-minutes'),
      $seconds: document.querySelector('#timer-seconds')
    }).create();

    window.addEventListener('resize', this.events.resize.bind(this));

    this.events.resize.call(this);
  };

  Page.prototype = {
    events: {
      resize: function() {
        this.navigation[window.matchMedia('(min-width: 64rem)').matches ? 'destroy' : 'create']();
      }
    }
  };

  new Page();
})(window);
