forked from Pinguee/cargo-bot-tangible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
88 lines (78 loc) · 3 KB
/
main.html
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
<!DOCTYPE html>
<html>
<head>
<title>Cargo Tangible</title>
<link rel="stylesheet" href="style/style.css">
<link rel="stylesheet" href="style/mainStyle.css">
</head>
<body>
<header>
<h1 id="title" onclick="window.location.href = 'index.html';">Cargo Tangible</h1>
</header>
<div id="modal" class="modal">
<div id="scanner">
<canvas id="video-canvas" width="1280" height="720"></canvas>
<div id="buttonContainer">
<button id="scanButton" class="scannerButton"></button>
<button id="closeButton" class="scannerButton"></button>
</div>
</div>
</div>
<div id="modalImg" class="modal">
<div id="scannerImg" class="scanner">
<canvas id="image-canvas" width="1280" height="720"></canvas>
<div id="buttonContainerImg" class="buttonContainer">
<button id="scanButtonImg" class="scannerButton"></button>
<button id="closeButtonImg" class="scannerButton"></button>
</div>
</div>
</div>
<div id="modalQr" class="modal">
<p id="qrcodeText">Scannez ce QRCode pour vous connecter à cette page via votre smartphone et ainsi pouvoir transmettre les photos des programmes facilement.</p>
<div id="qrcode"></div>
<div id="buttonContainerQr">
<button id="closeButtonQr" class="scannerButton"></button>
</div>
</div>
<div id="main">
<div id="inputMethod">
<button id="camInButton" class="button">
<span class="mouseOver">Scan avec la webcam</span>
</button>
<label>
<input type="file" accept="image/*" id="fileInput" capture="camera">
<div id="imgInButton" class="button"><span class="mouseOverDiv">Importer une image</span></div>
</label>
<button id="phoneInButton" class="button">
<span class="mouseOver">Connecter un téléphone</span>
</button>
</div>
<div id="selectorCam" class="select" style="display: none;">
<select id="videoSource">
<option value="" selected disabled hidden>Sélectionnez la caméra</option>
</select>
<div id="buttonContainerSelect">
<button id="closeButtonSelect" class="scannerButton"></button>
</div>
</div>
<iframe id="frame" src="cargo-not/index.html" width="1000" height="1400"></iframe>
</div>
<footer>
<div>2021 | Benjamin Gliech & Salwa El Fatini</div>
<a href="credit.html">Crédits</a>
|
<a href="https://github.com/Pinguee/cargo-not">GitHub</a>
</footer>
<script src="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js"></script>
<script src="scripts/peerjs.min.js"></script>
<script src="TopCodes/js/adapter-0.2.9.js"></script>
<script src="TopCodes/js/topcodes.js"></script>
<script defer src="TopCodes/dart/main.dart.js"></script>
<script src="scripts/styleScript.js"></script>
<script src="scripts/perspectiveTransform.js"></script>
<script src="scripts/main.js"></script>
<script src="scripts/mathFonctions.js"></script>
<script src="scripts/constants.js"></script>
<script src="scripts/scanReader.js"></script>
</body>
</html>