{"size": 1639, "ext": "js", "max_stars_repo_path": "app/static/js/resume.js", "max_stars_repo_name": "kylerjohnston/another-static-flask-blog", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/static/js/resume.js", "max_issues_repo_name": "kylerjohnston/another-static-flask-blog", "max_issues_repo_issues_event_min_datetime": "2016-05-16T02:58:57.000Z", "max_issues_repo_issues_event_max_datetime": "2016-06-11T01:42:13.000Z", "max_forks_repo_path": "app/static/js/resume.js", "max_forks_repo_name": "kylerjohnston/another-static-flask-blog", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 33.4489795918, "max_line_length": 86, "alphanum_fraction": 0.6711409396}
var primaryBlue = "#3080e8";
var darkGrey = "#424242";

var navOpen = document.getElementById("nav-open");
var navClose = document.getElementById("nav-close");
var mobileNav = document.getElementById("mobile-nav");

// This function turns the header link arrows in the Projects section
// blue on mouse hover.
(function() {
  var links = document.getElementsByClassName("header-link");
  for (var i = 0; i < links.length; i++) {
    links[i].addEventListener("mouseover", function(event) {
      this.children[0].style.color = primaryBlue;
    });
    links[i].addEventListener("mouseout", function(event) {
      this.children[0].style.color = darkGrey;
    });
  }
})();

// This function works the mobile nav menu
(function() {
  var about = document.getElementById("about");
  window.addEventListener("scroll", function(event) {
    if (window.scrollY < about.offsetTop && navClose.style.display != "block") {
      navOpen.style.display = "none"
    }
    else if (window.scrollY >= about.offsetTop && navClose.style.display != "block") {
      navOpen.style.display = "block";
    }
  });
  function closeMenu() {
    navOpen.style.display = "block";
    mobileNav.style.display = "none";
    navClose.style.display = "none";
  }
  var mobileLinks = document.getElementsByClassName("mobile-link");
  for (var i = 0; i < mobileLinks.length; i++) {
    mobileLinks[i].addEventListener("click", closeMenu);
  }
  navOpen.addEventListener("click", function(event) {
    navClose.style.display = "block";
    mobileNav.style.display = "block";
    this.style.display = "none";
  });
  navClose.addEventListener("click", closeMenu);
})();
