{"size": 915, "ext": "js", "max_stars_repo_path": "SistemaSanitario/src/main/webapp/js/main.js", "max_stars_repo_name": "giovannirizzi/sistema-sanitario-italia", "max_stars_repo_stars_event_min_datetime": "2020-02-26T10:53:08.000Z", "max_stars_repo_stars_event_max_datetime": "2020-02-26T10:53:08.000Z", "max_issues_repo_path": "SistemaSanitario/src/main/webapp/js/main.js", "max_issues_repo_name": "giovannirizzi/sistema-sanitario-italia", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "SistemaSanitario/src/main/webapp/js/main.js", "max_forks_repo_name": "giovannirizzi/sistema-sanitario-italia", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.7857142857, "max_line_length": 67, "alphanum_fraction": 0.6404371585}
/* 
 * Main file per il codice javascript
 */
window.__PUBLIC_PATH__ = '/fonts';

function onSubmitLogin(){
    
    var username = document.getElementsByName("username")()[0];
    var password = document.getElementsByName("password")()[0];
    
    alert(username);
    
    return false;
}

function validateResetPasswordForm(){

    var newPassword = document.getElementById("newPassword").value;
    var confirm = document.getElementById("confirm").value;

    if(newPassword.length === 0 || confirm.length === 0)
        return false;

    if(newPassword !== confirm){
        document.getElementById("newPassword").value = "";
        document.getElementById("confirm").value = "";
        return false;
    }
    return true;
}

function validateForgotPasswordForm(){
    
    var email = document.getElementById("email").value;
    if(email.length === 0)
        return false;
        
    return true;
}


