-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (70 loc) · 3.31 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
<title>
QuizApp
</title>
<!-- CSS Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<!-- JS Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2" 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">Navbar</span>
</div>
</nav>
<div class="container responsive-container-card-indiv" id="container">
<div class="card quizcard">
<img src="img/quizbg.jpg" id="header-img" class="card-img-top ">
<div class="progress">
<div class="progress-bar" id="progress-bar" role="progressbar" style="width: 0%;">25%</div>
</div>
<div class="card-body" id="end-screen" style="display: none">
<div class="text-center final-headline">Quiz beendet!</div>
<div class="text-center">
Du hast <b id="amount-of-right-questions"></b> von <b id="amount-of-questions">7</b> Fragen richtig beantwortet!
</div>
<div class="button-row">
<button onclick="restartGame()" class="btn btn-primary">Erneut spielen</button>
</div>
</div>
<div class="card-body card-box-margin-indiv" id="question-body">
<h5 class="card-title" id="questiontext">Frage</h5>
<div class="card mb-2 quiz-answer-card" onclick="answer('answer_1')">
<div class="card-body " id="answer_1">
Antwort
</div>
</div>
<div class="card mb-2 quiz-answer-card" onclick="answer('answer_2')">
<div class="card-body " id="answer_2">
Antwort
</div>
</div>
<div class="card mb-2 quiz-answer-card" onclick="answer('answer_3')">
<div class="card-body " id="answer_3">
Antwort
</div>
</div>
<div class="card mb-2 quiz-answer-card" onclick="answer('answer_4')">
<div class="card-body " id="answer_4">
Antwort
</div>
</div>
<div class="question-footer ">
<span>
<b id="question-number">1</b> von <b id="all-questions"></b> Fragen
</span>
<button class="btn btn-primary" id="next-button" disabled onclick="nextQuestion()">Nächste Frage</button>
</div>
</div>
</div>
</div>
</body>
</html>