-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (75 loc) · 1.71 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="id-ID">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#9831e0">
<meta name="msapplication-navbutton-color" content="#9831e0">
<meta name="apple-mobile-web-app-status-bar-style" content="#9831e0">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="icon" href="img/favicon.ico">
<style>
body {
max-width: 100%;
margin: auto;
padding: 20% 0
}
#qr-reader {
border-radius: .75rem;
background: #fff;
padding: 1rem;
border:0 !important;
box-shadow: 0 0 15px rgba(25,25,25,.1);
}
#qr-reader a{
margin: 8px 0 !important;
color: #35aadc;
text-decoration: none !important;
}
input[type=file]{
width: 90%;
}
input[type=file]::file-selector-button {
border: 2px solid #6c5ce7;
padding: .2em .4em;
border-radius: .2em;
background-color: #a29bfe;
transition: 1s;
}
input[type=file]::file-selector-button:hover {
background-color: #81ecec;
border: 2px solid #00cec9;
}
#qr-reader img {
width: 160px !important;
}
#qr-reader img[alt=Info] {
width: 20px !important;
}
#qr-reader select{
width: 90%;
margin: auto;
text-align: center;
}
#qr-reader button {
margin: 8px 0;
border-radius: 50px;
border:0;
padding: 8px 20px;
background: #8e44ad;
color: #fff;
text-transform: uppercase;
}
</style>
<link rel="stylesheet" href="css/style.css">
<body>
<div id="qr-reader" style="width:300px; margin: auto"></div>
<script src="js/html5-qrcode.min.js"></script>
<script>
var html5QrcodeScanner = new Html5QrcodeScanner(
"qr-reader", { fps: 60, qrbox: 100 });
html5QrcodeScanner.render()
</script>
</body>
</html>