{"size": 637, "ext": "js", "max_stars_repo_path": "demo/css/position/modal/modal.js", "max_stars_repo_name": "LearnShare/FE", "max_stars_repo_stars_event_min_datetime": "2015-11-16T11:22:51.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-20T05:23:20.000Z", "max_issues_repo_path": "demo/css/position/modal/modal.js", "max_issues_repo_name": "Joxixi/FE", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "demo/css/position/modal/modal.js", "max_forks_repo_name": "Joxixi/FE", "max_forks_repo_forks_event_min_datetime": "2015-12-21T07:58:54.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-10T05:59:38.000Z"}
{"max_stars_count": 92, "max_issues_count": null, "max_forks_count": 26, "avg_line_length": 21.2333333333, "max_line_length": 60, "alphanum_fraction": 0.6844583987}
function openDialog() {
  var modal = document.getElementsByClassName('dialog')[0];
  
  modal.style.display = 'block';
}
function closeDialog() {
  var modal = document.getElementsByClassName('dialog')[0];
  
  modal.style.display = 'none';
}

function openOverlay() {
  var modal = document.getElementsByClassName('overlay')[0];
  
  modal.style.display = 'block';
}
function closeOverlay() {
  var modal = document.getElementsByClassName('overlay')[0];
  
  modal.style.display = 'none';
}

function hideOverlay(e) {
  var modal = document.getElementsByClassName('overlay')[0];
  
  if(e.target === modal) {
    closeOverlay();
  }
}
