-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (73 loc) · 3.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quizapp</title>
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></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">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
</head>
<body onload="init()">
<nav class="navbar navbar-light bg-light">
<div class="container-fluid">
<span class="navbar-brand mb-0 h1">Quizapp</span>
</div>
</nav>
<div class="container">
<div class="container">
<div class=" card quiz-card">
<img src="./img/pencil.jpg" id="header-image" class="card-img-top">
<div class="progress" role="progressbar">
<div class="progress-bar" id="progress-bar" 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"><img class="width-100" src="img/throphy.png">
Du hast <b id="amount-of-right-questions">XXX</b> Fragen von <b id="amount-of-questions">XXX</b>
richtig beantwortet
</div>
<div class="button-row">
<button onclick="restartGame()" class="btn btn btn-primary">Erneut Spielen</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" onclick="answer('answer_1')">
<div class="card-body" id="answer_1">
Antwort
</div>
</div>
<div class="card quiz-answer-card mb-2" onclick="answer('answer_2')">
<div class="card-body" id="answer_2">
Antwort
</div>
</div>
<div class="card quiz-answer-card mb-2" onclick="answer('answer_3')">
<div class="card-body" id="answer_3">
Antwort
</div>
</div>
<div class="card quiz-answer-card mb-2" onclick="answer('answer_4')">
<div class="card-body" id="answer_4">
Antwort
</div>
</div>
</div>
<div class="question-footer">
<span>
<b id="question-number">1</b> von <b id="all-questions">5</b> Fragen
</span>
<button onclick="nextQuestion()" class="btn btn-primary" id=next-button disabled>Nächste
Frage</button>
</div>
</div>
</div>
</div>
</body>
</html>