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

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <title>JavaScript Camera Capture</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>

  <h1 id="msg">Please allow this page to access your camera.</h1>
     <div style="display:inline-flexbox;position:fixed;margin-top:5px;z-index:999999;">
        <span style="display:inline-table"><button id="newphoto">Take A Photo</button></span>
      
    </div><br />
  <div id="wrapper">
    <video></video>
    <canvas></canvas>
   </div>
 
    
  <script src="../Scripts/takephoto.js?v=123"></script>
</body>
 
</html>
