forked from HackWalls/HackWalls
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (79 loc) · 2.58 KB
/
index.html
File metadata and controls
89 lines (79 loc) · 2.58 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
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html>
<head>
<style>
html, body {
padding: 0;
margin: 0;
width:100%;
height:100%;
}
body {
width:calc(100% - 2px);
height:calc(100% - 2px);
position: relative;
overflow:hidden;
}
#video {
width:100%;
height:100%;
}
#main {
position: absolute;
top: 0;
left: 0;
width:100%;
height:100%;
}
#overlay {
position: absolute;
top: 0;
left: 0;
width:100%;
height:100%;
transition: all 0.3s linear;
}
.canvas-container, .canvas-container canvas {
width:100% !important;
height:100% !important;
}
</style>
<link rel="stylesheet" href="circular-menu.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
</head>
<body>
<video id="video" preload autoplay loop muted></video>
<div id="main" class="menu-area">
<div id="overlay" style="border: 1px solid green;">
<canvas id="c"></canvas>
</div>
<nav class="circular-menu">
<div class="circle">
<a href="" class="fa fa-pencil fa-2x delay-1" style="color:black;" onclick="setColor('black')"></a>
<a href="" class="fa fa-pencil fa-2x delay-2" style="color:red;" onclick="setColor('red')"></a>
<a href="" class="fa fa-pencil fa-2x delay-3" style="color:green;" onclick="setColor('green')"></a>
<a href="" class="fa fa-pencil fa-2x delay-4 active" style="color:blue;" onclick="setColor('blue')"></a>
<a href="" class="fa fa-pencil fa-2x delay-5" style="color:orange;" onclick="setColor('orange')"></a>
</div>
</nav>
</div>
<canvas id="videoCanvas" style="display: none"></canvas>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script src="yjs/yjs/y.js"></script>
<script src="bower_components/y-websockets-client/y-websockets-client.js"></script>
<script src="bower_components/fabric.js/dist/fabric.min.js"></script>
<script src="bower_components/hammerjs/hammer.js"></script>
<script src="bower_components/perspective-transform/dist/perspective-transform.js"></script>
<script src="bower_components/js_marker_detector/cv.js"></script>
<script src="bower_components/js_marker_detector/polyfill.js"></script>
<script src="bower_components/js_marker_detector/pupil.js"></script>
<script src="index.js"></script>
<script src="circular-menu.js"></script>
<script>
function setColor(color) {
window.paintConfig.color = color;
}
</script>
<script src="video-capture.js"></script>
</body>
</html>