FILEUP



LOG | FILES | OVERVIEW


F diff --git a/js/validate_hero.js b/js/validate_hero.js --- a/js/validate_hero.js +++ b/js/validate_hero.js
function clear_hero_errors()
{
- var errors = document.getElementsByClassName("hero_form_error");
- var i;
+ let errors = document.getElementsByClassName("hero_form_error");
+ let i;
for (i = 0; i < errors.length; i++)
{
errors[i].hidden = true;
}
function validate_hero_login_form()
{
- var username=document.forms["hero_form"]["username"].value;
- var flag=true;
+ let username=document.forms["hero_form"]["username"].value;
+ let flag=true;
clear_hero_errors();
if(username.length==0)
}
function validate_hero_form()
{
- var username=document.forms["hero_form"]["username"].value;
- var email=document.forms["hero_form"]["email"].value;
- var password=document.forms["hero_form"]["password"].value;
- var password2=document.forms["hero_form"]["password2"].value;
+ let username=document.forms["hero_form"]["username"].value;
+ let email=document.forms["hero_form"]["email"].value;
+ let password=document.forms["hero_form"]["password"].value;
+ let password2=document.forms["hero_form"]["password2"].value;
- var flag=true;
+ let flag=true;
clear_hero_errors();
if(username.length==0)