-
Notifications
You must be signed in to change notification settings - Fork 0
/
wiki3.html
41 lines (40 loc) · 1.95 KB
/
wiki3.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 - Voorbeelden </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': possibleExample.isCorrectAnswer && showAnswer }" v-for="possibleExample in currentQuestion.possibleExamples">
{{ possibleExample.text }} <span v-if="showAnswer">- <b>{{ possibleExample.correctTerm }}</b></span><br>
</li>
</ul>
<br>
<span>Wat is het bijbehorende voorbeeld?</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>Definities van '{{ currentQuestion.term }}'</b></span>
<br>
<ul class="list-group">
<li class="list-group-item list-group-item-primary" v-for="definition in currentQuestion.definitions">
{{ definition }}
</li>
</ul>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="js/wiki3.js?date=20201024a"></script>
</body>
</html>