This repository has been archived by the owner on May 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.html
60 lines (56 loc) · 1.47 KB
/
demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Demo of FlashCard Component</title>
<script src="https://unpkg.com/vue"></script>
<!-- <script src="dist/CardSet.umd.min.js"></script> -->
<script src="https://cdn.jsdelivr.net/gh/learn-awesome/flashcard@master/dist/CardSet.umd.min.js"></script>
</head>
<body>
<h1>CardSet Example</h1>
<div id="mycardset">
<card-set></card-set>
</div>
<script>
new Vue({
el: '#mycardset',
data: {
flashCards: [
{
qid: 'qid1',
question: 'When did India become independent?',
answer: '1947',
flipped: false,
answered: null
},
{
qid: 'qid2',
question: 'How many countries are permanent members of UN security council?',
answer: '5',
flipped: false,
answered: null
},
{
qid: 'qid3',
question: 'In CSS, flex is the value of which property?',
answer: 'display',
flipped: false,
answered: null
},
{
qid: 'qid4',
question: 'COVID-19 is caused by which family of viruses?',
answer: 'Coronavirus',
flipped: false,
answered: null
}
]
},
components: {
'card-set': CardSet
}
})
</script>
</body>
</html>