{"size": 599, "ext": "js", "max_stars_repo_path": "scripts/checkLoggedIn.js", "max_stars_repo_name": "willcruse/ALevelCoursework", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "scripts/checkLoggedIn.js", "max_issues_repo_name": "willcruse/ALevelCoursework", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "scripts/checkLoggedIn.js", "max_forks_repo_name": "willcruse/ALevelCoursework", "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": 33.2777777778, "max_line_length": 84, "alphanum_fraction": 0.5409015025}
window.onload = function () {
    var uID = -1;
    var x = decodeURIComponent(document.cookie); //Finds the uID cookie if there
    var split = x.split(";");
    var target = "uID=";
    for (var i = 0; i < split.length; i++) {
        var c = split[i];
        while (c.charAt(0) == ' ') {
            c = c.substring(1);
        }
    }
    if (c.indexOf(target) == 0) {
        uID = c.substring(target.length, c.length);
    }
    if (uID != -1){ //If the cookie is found updates to tell user they are logged in
        document.getElementById("infoP").innerText = "you are logged in";
    }
};