forked from JuanPabllo/QRCode-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (51 loc) · 1.19 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<script src="js/vue.min.js"></script>
<script src="js/qrious.min.js"></script>
<link rel="stylesheet" href="css/style.css" />
<title>QRCode Generator</title>
</head>
<body>
<div id="app">
<h1>QRCode Generator</h1>
<div>
<input
type="text"
size="25"
placeholder="Type to generate..."
v-model="text"
/>
</div>
<div v-if="text" class="output">
<img :src="newQRCode" alt="QRCode" />
</div>
<div id="footer">
<a
href="https://www.linkedin.com/in/juanpablodev/"
target="_blank"
rel="noopener noreferrer"
>
<h3>Made with ❤ and ☕ By <strong>Juan</strong> Pablo</h3>
</a>
</div>
</div>
<script>
new Vue({
el: "#app",
data: {
title: "Gerador QRCode",
text: "",
qrcode: new QRious({ size: 300 }),
},
computed: {
newQRCode() {
this.qrcode.value = this.text;
return this.qrcode.toDataURL();
},
},
});
</script>
</body>
</html>