{"size": 650, "ext": "js", "max_stars_repo_path": "_js/app.js", "max_stars_repo_name": "jasonheecs/personal-site", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "_js/app.js", "max_issues_repo_name": "jasonheecs/personal-site", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "_js/app.js", "max_forks_repo_name": "jasonheecs/personal-site", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.2142857143, "max_line_length": 97, "alphanum_fraction": 0.6707692308}
'use strict';

/* globals Modernizr */

require('modernizr');
var ShapeShifter = require('./shape-shifter');
var ViewportAnimator = require('./viewport-animator');
var Nav = require('./nav');
var Smoothstate = require('./smoothstate');
var FooterEmail = require('./footer-email');

function init() {
	if ((window.innerWidth >= 960 && !Modernizr.touchevents) && document.querySelector('.canvas')) {
		ShapeShifter.init();
	}

	Nav.init();
	ViewportAnimator.init();
	FooterEmail.init();
    if (window.ga) {
        window.ga('send', 'pageview');
    }
}

document.addEventListener('DOMContentLoaded', function() {
	init();
	Smoothstate.init(init);
});