-
Notifications
You must be signed in to change notification settings - Fork 0
/
wiki2.html
41 lines (40 loc) · 1.95 KB
/
wiki2.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
<!DOCTYPE html>
<html lang="nl" xml:lang="nl">
<head>
<title>Wiki - Definities</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" >
</head>
<body onload="init()">
<br>
<br>
<div id="wiki" v-cloak class="container" style="width: 100vw; height: 100vh;">
<h5>{{ currentQuestion.term }}</h5>
<br>
<ul class="list-group">
<li class="list-group-item" v-bind:class="{ 'list-group-item-success': possibleDefinition.isCorrectAnswer && showAnswer }" v-for="possibleDefinition in currentQuestion.possibleDefinitions">
{{ possibleDefinition.text }} <span v-if="showAnswer">- <b>{{ possibleDefinition.correctTerm }}</b></span>
</li>
</ul>
<br>
<span>Wat is de bijbehorende definitie?</span>
<br>
<br>
<button type="button" v-on:click="turnOnShowAnswer()" class="btn btn-success">Toon antwoord</button>
<button type="button" v-on:click="createNewQuestion()" class="btn btn-primary">Nieuwe vraag</button>
<br>
<br>
<div v-if="showAnswer" class="container px-5">
<span><b>Voorbeelden van '{{ currentQuestion.term }}'</b></span>
<br>
<ul class="list-group">
<li class="list-group-item list-group-item-primary" v-for="example in currentQuestion.examples">
{{ example }}
</li>
</ul>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="js/wiki2.js?date=20201024a"></script>
</body>
</html>