-
Notifications
You must be signed in to change notification settings - Fork 0
/
jumboquiz.html
33 lines (30 loc) · 1.06 KB
/
jumboquiz.html
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
<head>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<script src="script.js"></script>
<script src="mark.js"></script>
<title>Jumbo Quiz</title>
</head>
<body>
<br>
<h1>Jumbo Quiz</h1>
<br>
<div id="scorediv" class="hide"><h1 id="title">Your Score</h1><br>
<centre><p class="score" id="score">0</p></centre></div>
<br>
<script>
var text = "";
var files = [ "naked-eye-quiz.txt", "telescopic-quiz.txt", "earth-quiz.txt", "moon-quiz.txt", "sun-quiz.txt", "solar-system-1.txt", "solar-system-2.txt", "comets-quiz.txt", "exoplanet-quiz.txt", "stars-quiz.txt", "star-evolution.txt", "galaxy-quiz.txt", "cosmology-quiz.txt", "telescope-quiz.txt", "exploration-quiz.txt"];
var i;
for (i = 0; i < files.length; i++) {
var toadd = readTextFile(files[i]);
toadd = toadd.split("\n");
toadd.pop();
toadd = toadd.join("\n");
text = text + toadd;
}
makeQuiz(text);
</script>
<br>
<center><button type="button" class="submit" onclick="markQuiz()">SUBMIT</button></center>
<br>
</body>