forked from hotspotms/qrlogin
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
109 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,116 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
<title>QR LOGIN</title> | ||
<style> | ||
video{width:100%!important;height:auto!important}#reload{margin-top:5px;margin-bottom:10px;padding:5px;background-color:#0336FF;color:#f3f4f5;border-radius:3px;width:150px;cursor:pointer}a{text-decoration:none;color:#0336FF}.progress{padding:10px;margin-top:5px}#camera{position:relative;width:auto;height:100%}#camera:after,#camera:before,#camera>:first-child:after,#camera>:first-child:before{position:absolute;width:80px;height:80px;border-color:red;border-style:solid;content:' '}#camera:before{top:0;left:0;border-width:5px 0 0 5px}#camera:after{top:0;right:0;border-width:5px 5px 0 0}#camera>:first-child:before{bottom:0;right:0;border-width:0 5px 5px 0}#camera>:first-child:after{bottom:0;left:0;border-width:0 0 5px 5px}#camera-inside{padding:10px;margin-bottom:-5px}#hasil{font-size:20px;font-weight:600px;background-color:#76ff03;color:#202020} | ||
|
||
</style> | ||
<script type="text/javascript" src="llqrcode.js"></script> | ||
<script type="text/javascript" src="webqr.js"></script> | ||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>QR LOGIN</title> | ||
<style> | ||
video { | ||
width: 100% !important; | ||
height: auto !important | ||
} | ||
|
||
#reload { | ||
margin-top: 5px; | ||
margin-bottom: 10px; | ||
padding: 5px; | ||
background-color: #0336FF; | ||
color: #f3f4f5; | ||
border-radius: 3px; | ||
width: 150px; | ||
cursor: pointer | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
color: #0336FF | ||
} | ||
|
||
.progress { | ||
padding: 10px; | ||
margin-top: 5px | ||
} | ||
|
||
#camera { | ||
position: relative; | ||
width: auto; | ||
height: 100% | ||
} | ||
|
||
#camera:after, | ||
#camera:before, | ||
#camera>:first-child:after, | ||
#camera>:first-child:before { | ||
position: absolute; | ||
width: 80px; | ||
height: 80px; | ||
border-color: red; | ||
border-style: solid; | ||
content: ' ' | ||
} | ||
|
||
#camera:before { | ||
top: 0; | ||
left: 0; | ||
border-width: 5px 0 0 5px | ||
} | ||
|
||
#camera:after { | ||
top: 0; | ||
right: 0; | ||
border-width: 5px 5px 0 0 | ||
} | ||
|
||
#camera>:first-child:before { | ||
bottom: 0; | ||
right: 0; | ||
border-width: 0 5px 5px 0 | ||
} | ||
|
||
#camera>:first-child:after { | ||
bottom: 0; | ||
left: 0; | ||
border-width: 0 0 5px 5px | ||
} | ||
|
||
#camera-inside { | ||
padding: 10px; | ||
margin-bottom: -5px | ||
} | ||
|
||
#hasil { | ||
font-size: 20px; | ||
font-weight: 600px; | ||
background-color: #76ff03; | ||
color: #202020 | ||
} | ||
</style> | ||
<script type="text/javascript" src="llqrcode.js"></script> | ||
<script type="text/javascript" src="webqr.js"></script> | ||
</head> | ||
|
||
<body> | ||
<center> | ||
<div id="main"> | ||
<div id="mainbody"> | ||
<div class="progress"> | ||
QR Login <span id="nama_hotspot"></span> | ||
<div id="hasil"></div> | ||
</div> | ||
<div id="camera"> | ||
<div id="camera-inside"></div> | ||
<center> | ||
<div id="main"> | ||
<div id="mainbody"> | ||
<div class="progress"> | ||
QR Login <span id="nama_hotspot"></span> | ||
<div id="hasil"></div> | ||
</div> | ||
<div id="camera"> | ||
<div id="camera-inside"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<br> | ||
<div id="reload" onclick="location.reload();">Refresh Camera</div> | ||
<p><small>arahkan ke voucher yang ada QR Code</small></p> | ||
<br> | ||
</center> | ||
<canvas style="display:none;" id="qr-canvas" width="800" height="600"></canvas> | ||
<script type="text/javascript">load();</script> | ||
<br> | ||
<div id="reload" onclick="location.reload();">Refresh Camera</div> | ||
<p><small>arahkan ke voucher yang ada QR Code</small></p> | ||
<p><small>Point camera to QRCode</small></p> | ||
<br> | ||
</center> | ||
<canvas style="display:none;" id="qr-canvas" width="800" height="600"></canvas> | ||
<script type="text/javascript">load();</script> | ||
</body> | ||
</html> | ||
|
||
</html> |