{"size": 484, "ext": "js", "max_stars_repo_path": "UI/js/restrict.js", "max_stars_repo_name": "ibraheemkabir/storemanager", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "UI/js/restrict.js", "max_issues_repo_name": "ibraheemkabir/storemanager", "max_issues_repo_issues_event_min_datetime": "2018-10-24T10:12:09.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-12T17:27:21.000Z", "max_forks_repo_path": "UI/js/restrict.js", "max_forks_repo_name": "ibraheemkabir/storemanager", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 6, "max_forks_count": null, "avg_line_length": 32.2666666667, "max_line_length": 69, "alphanum_fraction": 0.5950413223}
window.addEventListener("load", ()=>{
    if(!token){
        document.body.classList.add(".has-overlay");
        toastr.error(`you must be logged in to access this page`);
        setTimeout(() => window.location.assign('login.html'), 1000);

    }else if(token.priviledge!=0) {
        document.body.classList.add(".has-overlay");
        toastr.error(`you are not authorised to view this page`);
        setTimeout(() => window.history.back(), 300);

    }else{
        
    }
});