<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="//code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<link href="//stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">   
<script type="text/javascript">
	function hide(id) { var divObject = document.getElementById(id); divObject.style.display = "none"; }
	function show(id) { var divObject = document.getElementById(id); divObject.style.display = "block"; }
</script>
 <link rel="stylesheet" href="style.css">
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/webrtc-adapter/3.3.3/adapter.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.10/vue.min.js"></script>
    <script type="text/javascript" src="https://rawgit.com/schmich/instascan-builds/master/instascan.min.js"></script>
	<i class="fa fa-times" id="btnqv" style=" position: absolute; z-index: 101;  display:none; right:10px; top:10px; cursor:pointer; padding:5px; border:1px solid #ccc;" onclick="location.href='?'"></i>
	<div id="quickview" style="width: 100%; height: 100%; position: absolute; background: #fff; z-index: 100; padding:10px; display:none;"></div>
    <div id="app" style="background:transparent;">
      <div class="sidebar" style="background:transparent; min-width:auto; width:100%; display:block; position:absolute; bottom:0px;">
        <section class="cameras">
          <ul>
            <li v-if="cameras.length === 0" class="empty">No Cam</li>
            <li v-for="camera in cameras">
              <span v-if="camera.id == activeCameraId" :title="formatName(camera.name)" class="active">{{ formatName(camera.name) }}</span>
              <span v-if="camera.id != activeCameraId" :title="formatName(camera.name)">
                <a @click.stop="selectCamera(camera)">{{ formatName(camera.name) }}</a>
              </span>
            </li>
          </ul>
        </section>
        <section class="scans">
          <ul v-if="scans.length === 0">
            <li class="empty"  onclick="show('quickview');show('btnqv');Qrcode(this);">No scans</li>
          </ul>
          <transition-group name="scans" tag="ul">
            <li v-for="scan in scans" :key="scan.date" :title="scan.content"><a href="#" :data-url="scan.content" onclick="show('quickview');show('btnqv');Qrcode(this);">{{ scan.content }}</a></li>
          </transition-group>
        </section>
      </div>
      <div class="preview-container" style="max-height:300px;">
        <video id="preview"></video>
      </div>
    </div>
	<script type="text/javascript">
		function Qrcode(ID){
			$("#quickview").load("../quickview.php?ne=kayit&ID="+ID.getAttribute("data-url")+"");
			//parent.document.location.href = "https://"+window.location.hostname+"/v8panel/?id="+ID.getAttribute("data-url")+"";
			//alert("kod="+ID.getAttribute("data-url")+"");
		}
    </script>
<script type="text/javascript" src="app.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>