-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.htm
51 lines (49 loc) · 1001 Bytes
/
index.htm
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
<!DOCTYPE html>
<html>
<head>
<title>How's My Hair?</title>
<style>
video {
border:3px solid black;
width:480px;
height:360px;
}
button {
font: 18px sans-serif;
padding: 8px;
}
h1 {
font: 64px sans-serif;
text-align: center;
font-weight: bold;
text-shadow: 3px 3px 3px #00FF00;
}
h2 {
font: 20px sans-serif;
text-align: center;
}
</style>
</head>
<body>
<h1>How's My Hair?</h1>
<h2>The web's #1 utility for checking your hair.</h2>
<center>
<video id="vid" autoplay="true"></video>
<br>
<button id="btn" onclick="start()">Check Hair</button>
<script>
video = document.getElementById("vid");
function start() {
navigator.webkitGetUserMedia({video:true}, gotStream, function() {});
btn.disabled = true;
}
function gotStream(stream) {
video.src = webkitURL.createObjectURL(stream);
}
</script>
<br/>
<br/>
<p>Privacy guarantee: <b>Your hair is safe.</b> This image is not stored, saved, shown, or otherwise displayed to anyone but you.</p>
</center>
</body>
</html>