<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Opencamera.aspx.cs" Inherits="CheckSheet.Opencamera" %>

   <!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet"
          href="style.css">
    <title>QR Code Scanner / Reader
    </title>
         <script type="text/javascript" src="../Scripts/jquery-1.8.9.js"></script> 
         <script type="text/javascript" src="../Scripts/jquery-1.7.2.min.js"></script> 
         <script src="../Scripts/sweetalert2.all.min.js"></script>
         <link rel="stylesheet" type="text/css" href="../css/sweetalert2.min.css"/> 
     <style>
        /* style.css file*/
body {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    height: 100vh;
    box-sizing: border-box;
    text-align: center;
    
}
.container {
    width: 100%;
    max-width: 500px;
    margin: 5px;
}
 
.container h1 {
    color: #ffffff;
}
 
.section {
    background-color: #ffffff;
    padding: 50px 30px;
    border: 1.5px solid #b2b2b2;
    border-radius: 0.25em;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.25);
}
 
#my-qr-reader {
    padding: 20px !important;
    border: 1.5px solid #b2b2b2 !important;
    border-radius: 8px;
}
 
#my-qr-reader img[alt="Info icon"] {
    display: none;
}
 
#my-qr-reader img[alt="Camera based scan"] {
    width: 100px !important;
    height: 100px !important;
}
 
button {
	 -webkit-appearance: none;
	 width: auto;
	 min-width: 100px;
	 border-radius: 24px;
	 text-align: center;
	 padding: 15px 40px;
	 margin-top: 5px;
	 background-color: #b08bf8;
	 color: #fff;
	 font-size: 14px;
	 margin-left: auto;
	 font-weight: 500;
	 box-shadow: 0px 2px 6px -1px rgba(0, 0, 0, .13);
	 border: none;
	 transition: all 0.3s ease;
	 outline: 0;
     cursor:pointer;
}
 button:hover {
	 transform: translateY(-3px);
	 box-shadow: 0 2px 6px -1px rgba(182, 157, 230, .65);
}
 button:hover:active {
	 transform: scale(0.99);
}
#html5-qrcode-anchor-scan-type-change {
    text-decoration: none !important;
    color: #1d9bf0;
}

        video {
            width: 100% !important;
            border: 1px solid #b2b2b2 !important;
            border-radius: 0.25em;
        }
    </style>
 
</head>
 
<body>
    <div class="container">
        <h1>Scan QR Codes</h1>
        <div class="section">
            <div id="my-qr-reader">
            </div>
        </div>
        <div style="text-align:left;border-style:solid;border-color:red;border-width:thin;margin-top:30px;background-image:url('../image/warningshow.png');background-repeat:no-repeat;background-position-x:right;background-size:30px;">
           How to fix when camera not work<br /><br />
           1) Copy text:=<a href="#" onclick="javascript:copylink();return false;" >chrome://flags/#unsafely-treat-insecure-origin-as-secure</a> <br />
2) Open new windows and paste text into URL<br />
3) Enable 'Insecure origins treated as secure'<br />
4) Add the addresses for which you want to ignore this policy<br /> (e.g. http://49.0.198.65)<br />
5) Restart chrome
        </div>
    </div>
    <script
        src="../Scripts/scanqrcode.js">
    </script>
    <script type="text/javascript" src="Opencamera.js?v=001"></script>
</body>
 
</html>
