-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
161 lines (134 loc) · 4.91 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<!--
Demonstration of the TI SensorTag JavaScript library.
-->
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, user-scalable=no
initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<title>Neo-Gait CC2541 </title>
<style>
//@import 'ui/css/evothings-app.css';
</style>
<script>
// Redirect console.log to Evothings Workbench.
if (window.hyper && window.hyper.log) { console.log = hyper.log }
</script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
<script src="cordova.js"></script>
<script src="libs/evothings/evothings.js"></script>
<script src="libs/evothings/tisensortag/tisensortag.js"></script>
<script src="libs/jquery/jquery.js"></script>
<script src="RGraph/libraries/RGraph.common.core.js" ></script>
<script src="RGraph/libraries/RGraph.line.js" ></script>
<script src="RGraph/libraries/RGraph.scatter.js" ></script>
<script src="RGraph/libraries/RGraph.common.dynamic.js" ></script>
<script src="index.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header" data-position="fixed">
<h1>EVO</h1>
<a href="#nav-panel" class="ui-btn-left " data-icon="bars" data-iconpos="notext">Menu</a>
</div>
<div data-role="panel" data-display="overlay" data-theme="b" id="nav-panel" >
<ul data-role="listview">
<li data-icon="delete"><a href="#" data-rel="close">v0.0.5</a></li>
<li><a href="#pg_sync">sync</a></li>
<li><a href="scan.html" rel="external">scan</a></li>
</ul>
</div>
<div data-role="content">
<h1>Neo-Gait CC2541</h1>
<img src="neo-gait.png"
style="float:right;width:120px;height:auto;"/>
<p>
This is a testing device program working with the <strong>Neo-Gait CC2541</strong>.
</p>
<p id="upgradeNotice" class="hidden">
<span class="color_softred">Please upgrade the firmware of your SensorTag.</span>
</p>
<div data-role="controlgroup" data-type="horizontal">
<button onclick="connect()" class="ui-btn green">
Connect
</button>
<button onclick="disconnect()" class="charcoal">
Disconnect
</button>
<button onclick="test_on()" class="blue">
Device Test
</button>
</div>
<p>
<strong>Ble Status:</strong> <span id="StatusData">Press Connect to find the nearest Neo-Gait</span>
</p>
<p>
<strong>Network Status:</strong> <span id="st_net"></span>
</p>
<p>
Device model: <span id="DeviceModel">?</span><br />
Firmware version: <span id="FirmwareData">?</span>
</p>
<div id="Luxometer">
<h3>Flash Test:</h3>
<p>
<span id="flash">[Waiting for value]</span>
</p>
<div id="flash_test" style="background:white;height:20px;width:30%;"></div>
</div>
<h3>LED:</h3>
<div id="red" style=height:25px;width:30%>R</div>
<div id="green" style=height:25px;width:30%>G</div>
<div id="blue" style=height:25px;width:30%>B</div>
<div id="breath" style=height:25px;width:30%>Breath</div>
<h3>Keypress:</h3>
<p>
<span id="KeypressData">[Waiting for value]</span>
</p>
<div id="btn" style=height:20px;width:30%></div>
<h3>Pitch:</h3>
<p>
<span id="AccelerometerData">[Waiting for value]</span>
<div id="acc_z" style=height:10px;width:0px;background:red> </div>
</p>
<h3>Height:</h3>
<p>
<span id="GyroscopeData">[Waiting for value]</span>
<div id="gyro_y" style=height:10px;width:0px;background:red> </div>
</p>
</div>
</div>
<div data-role="page" id="pg_sync">
<div data-role="header" data-position="fixed">
<h1>EVO</h1>
<a href="#" data-icon="arrow-l" data-iconpos="notext" data-add-back-btn="true" data-rel="back">back</a>
</div>
<div data-role="content">
<button onclick="sync_on()" class="blue">
Sync
</button>
<h2>Activities</h2>
<div style="position: relative">
<canvas id="cvs" width="300" height="150"></canvas>
</div>
<h2>Steps</h2>
<p>
<span id= "pdm" ></span>
</p>
<button onclick="log_clean()">clean</button>
<h2>Log</h2>
<p>
<span id="act"></span>
</p>
</div>
<script>
jQuery(document).ready(function ()
{
});
</script>
</body>
</html>