{"size": 513, "ext": "js", "max_stars_repo_path": "www/public/js/loading.js", "max_stars_repo_name": "mobcomlab/we-share", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "www/public/js/loading.js", "max_issues_repo_name": "mobcomlab/we-share", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "www/public/js/loading.js", "max_forks_repo_name": "mobcomlab/we-share", "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": 22.3043478261, "max_line_length": 57, "alphanum_fraction": 0.5087719298}
$(document).ready(function() {
	doesConnectionExist();
});

function doesConnectionExist() {
    var xhr = new XMLHttpRequest();
    var file = "http://localhost:8888/";
    var randomNum = Math.round(Math.random() * 10000);
     
    xhr.open('HEAD', file + "?rand=" + randomNum, false);
     
    try {
        xhr.send();
         
        if (xhr.status >= 200 && xhr.status < 304) {
            return true;
        } else {
            return false;
        }
    } catch (e) {
        return false;
    }
}