-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscanner.php
More file actions
114 lines (104 loc) · 3.41 KB
/
Copy pathscanner.php
File metadata and controls
114 lines (104 loc) · 3.41 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!doctype html>
<html lang="fr">
<head>
<!-- Required meta tags -->
<meta charset="utf-8"/>
<meta name="viewport"
content="width=device-width, initial-scale=1,maximum-scale=1.0, user-scalable=0, shrink-to-fit=yes"/>
<title>QR Code Scanner Example</title>
<link rel="stylesheet" href="css/menu.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.css" rel="stylesheet">
<style>
* {
overflow: hidden;
}
</style>
</head>
<body style="margin:0;padding:0;overflow: hidden">
<nav class="position-fixed fixed-top">
<a class="logout green pl-2" href="index.php">
<h1 class="x_logout">×</h1>
</a>
<div class="green digit countdown text-center" id="timer"></div>
<?php include 'php/config.php';
include('php/countdown.php');
echo '<script src="js/countdown.js"></script><script>' . $countdown . '</script>';
?>
<div class="button">
<a class="btn-open" href="#"></a>
</div>
</nav>
<div style="z-index:1 ;" class="fixed-top nav2 text-center nav-green pr-1">QR Scanner</div>
<div class="overlay">
<div class="wrap">
<ul class="wrap-nav">
<li>
<a href="index.php">
<div class="menu-item"><img src="img/scanner.png"></div>
</a>
</li>
<li>
<a href="fakemail.php">
<div class="menu-item">
<img src="img/map.png"></div>
</a>
</li>
<li>
<a href="casques.php">
<div class="menu-item">
<img src="img/mail.svg"></div>
</a>
</li>
<li>
<a href="index.php">
<div class="menu-item">
<img src="img/indice.png"></div>
</a>
</li>
<li>
<a href="hackermail.php">
<div class="menu-item">
<img src="img/anonymous.svg"></div>
</a>
</li>
</ul>
</div>
</div>
<article>
<section style="width:100vw;height:100vh; margin:8vh auto;">
<!-- webcamera view component -->
<video id="webcameraPreview" playsinline autoplay muted loop style="width: 100%;"></video>
</section>
</article>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/adapter.min.js"></script>
<script type="text/javascript" src="js/instascan.js"></script>
<script type="text/javascript" src="js/QrCodeScanner.js"></script>
<script type="text/javascript">
//HTML video component for web camera
var videoComponent = $("#webcameraPreview");
//HTML select component for cameras change
var webcameraChanger = $("#webcameraChanger");
var options = {};
//init options for scanner
options = initVideoObjectOptions("webcameraPreview");
var cameraId = 0;
initScanner(options);
initAvaliableCameras(
webcameraChanger,
function () {
cameraId = parseInt(getSelectedCamera(webcameraChanger));
}
);
initCamera(cameraId);
scanStart(function (data) {
alert(data);
});
</script>
<?php
include('footer.php');
?>
</body>
</html>