-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
112 lines (89 loc) · 4.5 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 class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/bootstrap.min.css">
<style>
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
<link rel="stylesheet" href="css/bootstrap-responsive.min.css">
<link rel="stylesheet" href="css/main.css">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script>window.html5 || document.write('<script src="js/vendor/html5shiv.js"><\/script>')</script>
<![endif]-->
</head>
<body>
<!-- This code is taken from http://twitter.github.com/bootstrap/examples/hero.html -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">PulseJS</a>
<div class="nav-collapse collapse">
<!-- <ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
</ul>
--> </div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<!-- Main hero unit for a primary marketing message or call to action -->
<div class="hero-unit">
<h1>Pulse JS</h1>
<p>This (probably buggy) demo measures your heart rate by using a webcam. Allow access to the webcam, then stand still for about 10 seconds. For best results, the face should be entirely contained in the image and the background should be static.</p>
<p><a class="btn btn-primary btn-large" onclick="start()" href="#">Start now!</a></p>
</div>
<div id="main" class="nothidden">
<video id="webcam" width="640" height="480" style="display:none;"></video>
<canvas id="canvas" width="160" height="120"></canvas>
<div id="no_rtc" class="alert alert-error" style="display:none;"></div>
<p id="result" style="display:none;text-align:center;">Pulse: <span id="pulse"></span></p>
<h1>Charts</h1>
<p>Channels</p>
<div id="chart1" style="width:640px; height:480px"></div>
<p>Signal</p>
<div id="chart2" style="width:640px; height:480px"></div>
<p>Spectrum</p>
<div id="chart3" style="width:1920px; height:480px"></div>
</div>
<hr>
<footer>
<p>© Andrea Altomani 2013</p>
</footer>
</div> <!-- /container -->
<script src="js/vendor/jquery-1.9.1.min.js"></script>
<script src="js/vendor/bootstrap.min.js"></script>
<script language="javascript" type="text/javascript" src="js/vendor/jquery.flot.min.js"></script>
<script type="text/javascript" src="js/compatibility.js"></script>
<script type="text/javascript" src="js/vendor/numeric.js"></script>
<script type="text/javascript" src="js/vendor/svd.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/pulse.js"></script>
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-11659851-5']);
_gaq.push(['_setDomainName', 'github.com']);
_gaq.push(['_setAllowLinker', true]);
_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>