Initial commit

bla
This commit is contained in:
2019-04-06 16:14:29 +02:00
parent cd762249ed
commit 57691246ed
50 changed files with 1247 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
var arrWarnings = [];
var arrProblems = [];
function checkInputs(){
var boolProblem = false;
document.getElementById("jsSignupAlert").innerHTML = "";
if(document.getElementById("name").value == ""){
arrWarnings[0] = "name field is empty<br>";
boolProblem = true
}
else{
arrWarnings[0] = "";
}
if(document.getElementById("email").value == ""){
arrWarnings[1] = "email field is empty<br>";
boolProblem = true
}
else{
arrWarnings[1] = ""
}
if(document.getElementById("pass").value == ""){
arrWarnings[2] = "pass field is empty<br>";
boolProblem = true
}
else{
arrWarnings[2] = ""
}1
if(document.getElementById("pass2").value == ""){
arrWarnings[3] = "pass verification field is empty<br>";
boolProblem = true
}
else{
arrWarnings[3] = ""
}
if(document.getElementById("pass").value == document.getElementById("pass2").value){
arrWarnings[4] = "";
}
else{
arrWarnings[4] = "pass verification field doesnt match";
boolProblem = true
}
for (var i = 0; i < arrWarnings.length; i++) {
document.getElementById("jsSignupAlert").innerHTML += arrWarnings[i];
}
if(boolProblem){
document.getElementById("submitButton").disabled = true;
}
else{
document.getElementById("submitButton").disabled = false;
}
}