/
index.html
137 lines (125 loc) · 3.24 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!doctype html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<title>Webcam Outline - By Tuqire Hussain</title>
<style>
body {
color: rgb(238, 238, 238);
background-color: #000000;
height: 100vh;
margin: 0px;
overflow: hidden;
font-family: Arial, sans-serif;
font-size: 12px;
line-height: 1.7;
}
* {
box-sizing: border-box;
}
a {
color: inherit;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
#container {
width: 100%;
height: 100%;
position: relative;
}
#select-quality {
display: none;
font-size: 15px;
position: relative;
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
text-align: center;
}
.quality-selector {
cursor: pointer;
background: none;
color: inherit;
text-decoration: none;
font-size: 15px;
padding: 10px;
margin: 0 10px;
border: 1px solid white;
}
.quality-selector:hover {
background: #333;
}
h4 {
font-size: 25px;
margin: 0 20px 30px;
}
#no-support {
display: none;
position: relative;
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
text-align: center;
}
#info {
display: none;
line-height: 2;
background-color: rgb(26, 26, 26);
position: absolute;
bottom: 0px;
box-sizing: border-box;
}
.info-content {
padding: 15px;
}
.hide-info-button {
display: block;
cursor: pointer;
background-color: rgb(20, 20, 20);
padding: 5px 10px;
position: absolute;
width: 100%;
min-width: 80px;
left: 0;
top: -30px;
}
</style>
<meta property="og:url" content="https://tuqire.github.com/webcam-outline/" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Webcam Outline" />
<meta property="og:description" content="A particles simulation driven by Webcam" />
<meta property="og:image" content="https://tuqire.github.com/webcam-outline/images/fb-share.jpg" />
</head>
<body>
<div id="container">
<div id="simulation"></div>
<div id="select-quality">
<h4>Select Quality</h4>
<a class="quality-selector" href="?quality=50000">Very Low</a>
<a class="quality-selector" href="?quality=75000">Low</a>
<a class="quality-selector" href="?quality=100000">Medium</a>
<a class="quality-selector" href="?quality=150000">High</a>
<a class="quality-selector" href="?quality=250000">Very High</a>
</div>
<div id="no-support">
<h4>Your device or browser is not supported. Please use the latest version of Chrome on desktop.</h4>
</div>
<div id="info">
<a class="hide-info-button">Close</a>
<div class="info-content">
Number of particles: <span class="num-particles">0</span><br>
By <a target="_blank" href="http://www.tuqire.com">Tuqire Hussain</a>
[<a target="_blank" href="https://github.com/tuqire/webcam-outline">View Code</a>]<br>
Select Quality:
<a href="?quality=50000">V Low</a> |
<a href="?quality=75000">Low</a> |
<a href="?quality=100000">Medium</a> |
<a href="?quality=150000">High</a> |
<a href="?quality=250000">V High</a>
</div>
</div>
</div>
</body>