-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (69 loc) · 2.82 KB
/
index.html
File metadata and controls
80 lines (69 loc) · 2.82 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/camera_utils/camera_utils.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/control_utils/control_utils.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/drawing_utils/drawing_utils.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/hands/hands.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="switch.css">
</head>
<body>
<div class="w3-sidebar w3-bar-block w3-card w3-animate-left" style="display:none" id="mySidebar">
<button class="w3-bar-item w3-button w3-large"
onclick="w3_close()">Close ×</button>
<div class="options">
<div class="debugHand">
<h3>Debug Hand</h3>
<!-- Rounded switch -->
<label class="switch">
<input type="checkbox" id="debugHand">
<span class="slider round"></span>
</label>
</div>
<div class="automatic">
<h3>Automatic</h3>
<!-- Rounded switch -->
<label class="switch">
<input type="checkbox" id="automatic">
<span class="slider round"></span>
</label>
</div>
</div>
</div>
<div class="container" id="container">
<div class="w3-teal">
<button id="openNav" class="w3-button w3-teal w3-xlarge" onclick="w3_open()">☰</button>
<div class="w3-container">
<h1>My Page</h1>
<div class="howTo">
<a href="./instruction.html">How to Use!!! (WIP)</a>
</div>
</div>
</div>
<div class="wrapper">
<canvas class="output_canvas" width="1280px" height="720px"></canvas>
<canvas class="rectangle" width="1280px" height="720px"></canvas>
<h1 id="pressZ">Press the 'z' key to draw another rectangle!</h1>
</div>
<video class="input_video" style="opacity: 0; display: none;"></video>
</div>
<script src="./script.js"></script>
<script>
function w3_open() {
document.getElementById("container").style.marginLeft = "25%";
document.getElementById("mySidebar").style.width = "25%";
document.getElementById("mySidebar").style.display = "block";
document.getElementById("openNav").style.display = 'none';
}
function w3_close() {
document.getElementById("container").style.marginLeft = "0%";
document.getElementById("mySidebar").style.display = "none";
document.getElementById("openNav").style.display = "inline-block";
}
</script>
</body>
</html>