-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
112 lines (105 loc) · 2.33 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html style="background-color: black; opacity: 0.65; height: 100%; width: 100%;">
<head>
<title>Mirror</title>
</head>
<body>
<style>
html {
width: 100%;
margin: 0px;
padding: 0px;
overflow: hidden;
}
video {
max-width: 100%;
max-height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 0;
visibility: visible;
}
canvas {
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 1;
visibility: hidden;
}
#draggableAppHandle {
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 3;
-webkit-app-region: drag;
}
#canvasMask {
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 2;
opacity: 0.65;
visibility: hidden;
}
#maskDirections {
display: block;
position: absolute;
width: 100%;
top: 0;
right: 0;
color: black;
text-align: center;
font-size: small;
background: white;
z-index: 999;
border: 1px solid black;
visibility: hidden;
}
#exit {
display: block;
position: absolute;
width: 100%;
bottom: 0;
right: 0;
color: white;
background-color: rgba(0, 0, 0, 0.5);
text-align: center;
text-decoration: bolder;
font-size: small;
z-index: 999;
visibility: hidden;
}
#exit:hover {
color: black;
background-color: white;
}
</style>
<div>
<div>
<div id="draggableAppHandle"></div>
<video id="camFeed"></video>
<canvas id="canvasFeed"></canvas>
<canvas id="canvasMask"></canvas>
<div id="maskDirections">Draw motion detection exclusion areas</div>
<div id="exit">Exit</div>
</div>
</div>
<script src="mirror_motion.js"></script>
<script>
addEventListener("DOMContentLoaded", initialize('camFeed', 'canvasFeed', 'canvasMask'));
</script>
</body>
</html>