-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (72 loc) · 3.21 KB
/
index.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QuizeApp</title>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
<!-- Bootstrap file -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body onload="init()">
<nav class="navbar bg-body-tertiary">
<div class="container-fluid">
<span class="navbar-brand mb-0 h1">QuizApp</span>
</div>
</nav>
<div class="container">
<div class="card quiz-card">
<img src="./img/question.jpg" id="header-image" class="card-img-top">
<div class="progress">
<div id="progressbar" class="progress-bar" role="progressbar" style="width: 0%">25%</div>
</div>
<div class="card-body" id="endScreen" style="display: none;">
<div class="text-center final-headline">
Quiz Beendet
</div>
<div class="text-center">
Du hast <b id="amount-right-questions">XXX</b> Fragen von <b id="questionPosition">XXX</b> richtig beantwortet.
</div>
<div class="button-row">
<button class="btn btn-primary" onclick="restartGame()">Neustart</button>
</div>
</div>
<div class="card-body" id="questionBody">
<h5 class="card-title" id="questiontext">Frage</h5>
<div class="card quiz-answer-card mb-2">
<div class="card-body" id="answer_1" onclick="answer('answer_1')">
Antwort
</div>
</div>
<div class="card quiz-answer-card mb-2">
<div class="card-body" id="answer_2" onclick="answer('answer_2')">
Antwort
</div>
</div>
<div class="card quiz-answer-card mb-2">
<div class="card-body" id="answer_3" onclick="answer('answer_3')">
Antwort
</div>
</div>
<div class="card quiz-answer-card mb-2">
<div class="card-body" id="answer_4" onclick="answer('answer_4')">
Antwort
</div>
</div>
<div class="question-footer">
<span>
<b id="current-position">1</b> von <b id="questionLength"></b> Fragen
</span>
<button class="btn btn-primary" id="next-button" disabled onclick="nextQuestion()">Nächste
Frage</button>
</div>
</div>
</div>
</div>
</body>
</html>