-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_camera.html
More file actions
45 lines (36 loc) · 1.2 KB
/
debug_camera.html
File metadata and controls
45 lines (36 loc) · 1.2 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<!-- style -->
<style type='text/css'>
</style>
<title>บันทึกไทยชนะ</title>
</head>
<body>
<div class='container'>
<h3>Camera Debugger</h3>
<hr>
<p class="text-break"></p>
</div>
<!-- bottom scripts -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="./libs/html5-qrcode.min.js"></script>
<script>
// update camera list
Html5Qrcode.getCameras().then(devices => {
devices.forEach(cam => {
$('p').append(`
<h5>${cam.label}</h5>
${cam.id}
<hr>
`);
});
});
</script>
</body>
</html>