{"size": 738, "ext": "js", "max_stars_repo_path": "src/js/myjs.js", "max_stars_repo_name": "milkndcoffee/bs-healthcare", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/js/myjs.js", "max_issues_repo_name": "milkndcoffee/bs-healthcare", "max_issues_repo_issues_event_min_datetime": "2020-08-17T23:52:12.000Z", "max_issues_repo_issues_event_max_datetime": "2020-09-08T21:35:47.000Z", "max_forks_repo_path": "src/js/myjs.js", "max_forks_repo_name": "milkndcoffee/bs-healthcare", "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": 30.75, "max_line_length": 167, "alphanum_fraction": 0.674796748}

//sets up our functions
function scrollNav(){
  var navbar = document.getElementsByClassName("navbar");
  var mainDOM = document.getElementsByTagName("MAIN")[0];
  navbar = navbar[0];
  console.log(navbar);

  var y = navbar.offsetTop;

  window.onscroll = function() {
    if (window.pageYOffset >= y) {
      navbar.classList.add("sticky-this");
      mainDOM.classList.add("push-up"); //smooth's the sticky when Y is met
    } else {
      navbar.classList.remove("sticky-this");
      mainDOM.classList.remove("push-up");
    }
  };
}

const alertButton = () => {
  window.alert("Hi, this page was made with the intention of just the 'display' and as such, back-end functions will not be implemented (like this form submission).");
}