Repository navigation
Expand file tree
/
Copy pathcapture.html
More file actions
48 lines (42 loc) · 2.1 KB
/
Copy pathcapture.html
File metadata and controls
48 lines (42 loc) · 2.1 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<title>WILLISFACE :: CAPTURE</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./css/style.css" />
</head>
<body class="capture-page">
<div class="capture-title">PHOTO FOR <span id="who" class="capture-name">?</span></div>
<div class="viewport" id="viewport">
<video id="video" autoplay playsinline muted></video>
<canvas id="canvas"></canvas>
<svg class="overlay-svg" viewBox="0 0 300 400" preserveAspectRatio="xMidYMid meet">
<!-- horizontal eye line -->
<line x1="58" y1="198" x2="242" y2="198" stroke="#00f0ff" stroke-width="2" stroke-dasharray="6 4" opacity="0.9"/>
<text x="38" y="201" fill="#00f0ff" font-family="'Press Start 2P', monospace" font-size="8" opacity="0.95">EYES</text>
<!-- vertical center line -->
<line x1="150" y1="20" x2="150" y2="380" stroke="#ffffff" stroke-width="1.5" stroke-dasharray="4 4" opacity="0.6"/>
</svg>
</div>
<div id="status" class="status">ALIGN FACE INSIDE THE OVAL</div>
<div class="controls">
<button id="snapBtn" class="btn">SNAP</button>
<button id="retakeBtn" class="btn secondary" hidden>RETAKE</button>
<button id="useBtn" class="btn" hidden>USE THIS</button>
</div>
<div class="controls">
<input type="file" id="fileInput" accept="image/*" class="visually-hidden" />
<label for="fileInput" class="btn secondary" id="pickFileBtn" tabindex="0">UPLOAD PHOTO</label>
<button id="flipBtn" class="btn secondary">FLIP CAM</button>
<a class="btn secondary" href="./index.html">BACK</a>
</div>
<div id="uploadOverlay" class="upload-overlay" hidden>
<div id="uploadOverlayText" class="upload-overlay-text">UPLOADING…</div>
</div>
<script type="module" src="./js/capture.js"></script>
</body>
</html>