-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
109 lines (106 loc) · 5.53 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
<!DOCTYPE html>
<html lang="en" id="ng:app" ng-app="livebet">
<head>
<!--[if lte IE 8]>
<script>document.createElement('ng-form');</script>
<![endif]-->
<title>HTML5 Photo finish</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootswatch/2.3.2/cosmo/bootstrap.min.css">
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/3.2.0/css/font-awesome.min.css">
</head>
<body>
<div class="container">
<div class="masthead">
<h3 class="muted">HTML5 Photo finish</h3>
<div class="navbar">
<div class="navbar-inner">
<div class="container" id="controls">
<div class="btn-group">
<a href="#controls" id="playButton" class="btn btn-success"> <i class="icon-play"></i> Play</a>
<a href="#controls" id="pauseButton" class="btn btn-warning"> <i class="icon-pause"></i> Pause</a>
<a href="#controls" id="stopButton" class="btn btn-danger"> <i class="icon-stop"></i> Stop</a>
<a href="#controls" id="previewButton" class="btn"> <i class="icon-picture"></i> Preview</a>
</div>
<div class="btn-group">
<a href="#controls" id="resolutionButton320" resolution="320x240" class="resolution btn btn-small"> 320x240 </a>
<a href="#controls" id="resolutionButton640" resolution="640x480" class="resolution btn btn-small btn-info"> 640x480 </a>
<a href="#controls" id="resolutionButton1280" resolution="1280x960" class="resolution btn btn-small"> 1280x960 </a>
</div>
<div class="btn-group">
<button class="btn btn-small" id="lineSize" >
<input type="hidden" value="1"/>
Line size: <b>1</b>px
</button>
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li>
<a href="#controls" class="lineSize"> 1 </a>
</li>
<li>
<a href="#controls" class="lineSize"> 2 </a>
</li>
<li>
<a href="#controls" class="lineSize"> 5 </a>
</li>
<li>
<a href="#controls" class="lineSize"> 10 </a>
</li>
</ul>
</div>
</div>
</div>
</div><!-- /.navbar -->
</div>
</div>
<div class="container text-center" >
<div class="jumbotron ">
<h3> HTML5 proof of concept of <a href="http://en.wikipedia.org/wiki/Photo_finish">"Photo finish"</a> web cam. </h3>
<p>
Working on Chrome, Firefox and Opera. It should also work on IE (not tested).
</p>
<p>
<a class="btn btn-large btn-primary" href="https://github.com/ejci/HTML5-Photo-Finish">Get source code</a>
</p>
<p>
<small>To run demo you must allow to use web cam. Then press play and enjoy.</small>
</p>
</div>
</div>
<div class="container">
<div class="row text-center" id="source">
<div class="span12">
<video class="video" id="videoSource" style="display: none;" width="640" height="480"></video>
<canvas class="canvas" id="canvasSource" style="display: none;" width="640" height="480"></canvas>
</div>
</div>
</div>
<div class="container"id="overview">
<h3>Preview</h3>
<div class="row text-center" >
<p>
<canvas class="canvas" id="canvasDest" width="640" height="480"></canvas>
</p>
</div>
</div>
<div class="container results">
<div class="row-fluid text-left">
<p>
<div id="results"></div>
</p>
</div>
</div>
<div class="container results">
<hr>
<small>© <a href="http://blog.ejci.net">Miroslav Magda</a> 2013 </small>
</div>
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
<!--script src="//ajax.googleapis.com/ajax/libs/angularjs/1.1.4/angular.min.js"></script-->
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script src="app.js"></script>
</body>
</html>