-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscript.js
56 lines (50 loc) · 1.28 KB
/
script.js
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
function submit0() {
var x, text;
x = document.getElementById("a0").value;
if (x == "usecase diagram") {
text = "correct answer";
} else {
text = "wrong answer. correct ans - usecase diagram";
}
document.getElementById("out0").innerHTML = text;
}
function submit1() {
var x, text;
x = document.getElementById("a1").value;
if (x == "dynamic") {
text = "correct answer";
} else {
text = "wrong answer. correct ans - usecase diagram";
}
document.getElementById("out1").innerHTML = text;
}
function submit2() {
var x, text;
x = document.getElementById("a2").value;
if (x == "actor") {
text = "correct answer";
} else {
text = "wrong answer. correct ans - usecase diagram";
}
document.getElementById("out2").innerHTML = text;
}
function submit3() {
var x, text;
x = document.getElementById("a3").value;
if (x == "oval") {
text = "correct answer";
} else {
text = "wrong answer. correct ans - usecase diagram";
}
document.getElementById("out3").innerHTML = text;
}
function submit4() {
var x, text;
x = document.getElementById("a4").value;
if (x == "aggregation") {
text = "correct answer";
} else {
text = "wrong answer. correct ans - usecase diagram";
}
document.getElementById("out4").innerHTML = text;
}