-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
32 lines (28 loc) · 805 Bytes
/
main.js
File metadata and controls
32 lines (28 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
function check () {
var question1 = document.quiz.albumName.value;
var question2 = document.quiz.loveTrain.value;
var question3 = document.quiz.shows.value;
var question4 = document.quiz.location.value;
var question5 = document.quiz.date.value;
var correct = 0;
if(question1 == "Holly Rolling") {
correct++;
}
if(question2 == "El Mega") {
correct++;
}
if(question3 == "Big Bang MTL") {
correct++;
}
if(question4 == "Montreal") {
correct++;
}
if(question5 == "2014") {
correct++;
}
if(correct == 3) {
console.log("YOU WON OUR LATEST ALBUM; PROTOOLS CALLS OF ZION");
}
document.getElementById("after_submit").style.visibility = "visible";
document.getElementById("number_correct").innerHTML = "You got " + correct + "/5";
}