forked from don/html-cam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (35 loc) · 1.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<meta name="viewport" content="width=320">
<title>Browser Camera Demo</title>
<link rel="stylesheet" href="style.css">
<body>
<header>
Take a photo with your Android browser.
</header>
<div id="content"></div>
<form>
<!-- prompt the user, Camera or Gallery -->
<input type="file" accept="image/*" />
<!-- open the camera immediately
<input type="file" accept="image/*;capture=camera" />
-->
</form>
<footer>
<a href="https://github.com/don/html-cam">Source Code</a>
</footer>
<script src="script.js" type="text/javascript"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1093669-11']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>