English French

CREATE A USERNAME (THIS WILL BE YOUR VIRTUAL CAMPUS LOGIN USERNAME)

EMAIL ADDRESS

PASSWORD (THIS WILL BE YOUR VIRTUAL CAMPUS LOGIN PASSWORD)

FIRST NAME

LAST NAME

ACCESS CODE

"; } var registerForm = document.getElementById("registerForm"); registerForm.addEventListener("submit", event => { event.preventDefault(); captchaErrorValue = document.getElementById('captchaError'); if(captchaErrorValue.innerHTML != "Captcha Success!"){ checkCaptcha(); } checkFirstEmpty(); checkLastEmpty(); checkUsername(); checkEmail(); checkPassword(); checkKey(); debug_to_console("Test"); setTimeout(function(){ usernameErrorValue = document.getElementById('usernameError'); emailErrorValue = document.getElementById('emailError'); passwordErrorValue = document.getElementById('passwordError'); keyErrorValue = document.getElementById('keyError'); firstErrorValue = document.getElementById('firstError'); lastErrorValue = document.getElementById('lastError'); if(usernameErrorValue.innerHTML == "Username available" && emailErrorValue.innerHTML == "Email available" && passwordErrorValue.innerHTML == "Passwords are valid!" && keyErrorValue.innerHTML == "Secret Key is valid" && captchaErrorValue.innerHTML == "Captcha Success!" && firstErrorValue.innerHTML == "First name is filled!" && lastErrorValue.innerHTML == "Last name is filled!"){ document.getElementById("registerForm").submit(); } },700); });