-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
54 lines (54 loc) · 1.87 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 lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/full.min.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.tailwindcss.com"></script>
<style>
body, html {
font-family: 'Poppins', Arial, Helvetica, sans-serif;
padding: 0.5rem;
}
</style>
<title>qrcode-parser</title>
</head>
<body>
<div class="section">
<h3 class="text-xl font-bold mb-2">QR code URL</h3>
<input id="image-url" type="text" placeholder="QR code URL here" class="input input-bordered input-sm w-full max-w-xs" />
<input class="btn btn-sm" type="button" id="parse-image-url" value="Decode" />
<p class="my-2">
QR code content:
<span id="content1"></span>
</p>
</div>
<div class="section">
<h3 class="text-xl font-bold my-2">QR code Base64</h3>
<input
id="image-base64"
type="text"
class="input input-bordered input-sm w-full max-w-xs"
placeholder="QR code Base64 code here"
></input>
<input class="btn btn-sm" type="button" id="parse-image-base64" value="Decode" />
</div>
<p class="my-2">
QR code content:
<span id="content2"></span>
</p>
</div>
<div class="section">
<h3 class="text-xl font-bold my-2">Upload QR code</h3>
<div id="form">
<input type="file" name="file" id="file" class="file-input file-input-bordered file-input-sm w-full max-w-xs" />
</div>
<p class="my-2">
QR code content:
<span id="content3"></span>
</p>
</div>
<script type="module" src="/example/index.ts"></script>
</body>
</html>