-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
36 lines (35 loc) · 921 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>Quiz</title>
<!-- CSS -->
<link rel="stylesheet" href="https://bootswatch.com/lumen/bootstrap.min.css">
<!-- SCRIPT -->
<script src="https://npmcdn.com/vue@latest/dist/vue.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-strap/1.0.11/vue-strap.js"></script>
</head>
<body>
<div class="container">
<div id="app">
<button class="btn btn-default" @click="showModal = true">Show modal
</button>
<modal :show.sync="showModal">
<div slot="modal-header" class="modal-header">
<h4 class="modal-title">Modal title</h4>
</div>
<div slot="modal-body" class="modal-body">TEST</div>
</modal>
</div>
<script>
new Vue({
components: {
modal: VueStrap.modal
},
el: '#app',
data: {
showModal: false
}
})
</script>
</body>
</html>