-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (49 loc) · 1.65 KB
/
index.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Oh please</title>
<link rel="stylesheet" href="css/fake-happy.css">
<script src="lib/face-api.min.js"></script>
</head>
<body>
<div class="top-title">
<p>> I bet everybody here is fake happy too</p>
</div>
<div class="switch-container">
<label class="switch-label">Webcam</label>
<label class="switch">
<input type="checkbox" id="slider-input" checked>
<span class="slider round"></span>
</label>
<label class="switch-label">Image Upload</label>
</div>
<div class="detection">
<div class="detection-container">
<div id='frame' class="frame">
<div class='img-container'>
<img id='img' class='media-container' src='assets/band.jpg' onclick='detectFace()'/>
</div>
<div class='cam-container' style="display: none;">
<video id='video' class='media-container' preload autoplay loop muted></video>
</div>
</div>
<canvas id="canvas"></canvas>
</div>
</div>
<div class="input-container" id="input-container">
<i style='font-size: 2.5em'>⇡</i>
<input type="file" id="fileUpload" class="input-file"/>
<label for="fileUpload" title="Make yours"><i>We're</i> all so fake happy</label>
<i style='font-size: 2.5em'>⇡</i>
</div>
<div style="display: none;" id="mobilewarn">
<p>Oh no.</p>
<p>You are (probably) using this application on a mobile device, might be a bit slow.</p>
</div>
<div class='question-container'>
<a href="https://github.com/belinhacbr/fake-happy" title="Oh! What's the use?">?</a>
</div>
<script src="src/detect.js"></script>
</body>
</html>