{"size": 476, "ext": "js", "max_stars_repo_path": "js/init.js", "max_stars_repo_name": "Thomseeen/thomas-website", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/init.js", "max_issues_repo_name": "Thomseeen/thomas-website", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/init.js", "max_forks_repo_name": "Thomseeen/thomas-website", "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": 25.0526315789, "max_line_length": 69, "alphanum_fraction": 0.6197478992}
(function ($) {
  $(function () {
    $('.sidenav').sidenav();
    $('.parallax').parallax();
  }); // end of document ready
})(jQuery); // end of jQuery name space

function pageLoaded() {
  const birthDate = new Date(1995, 6, 4);
  document.getElementById("age").innerHTML = calculateAge(birthDate);
}

function calculateAge(date) {
  const now = new Date();
  const diff = Math.abs(now - date);
  const age = Math.floor(diff / (1000 * 60 * 60 * 24 * 365));
  return age;
}
