-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
85 lines (58 loc) · 3.55 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
<!DOCTYPE HTML>
<html>
<head>
<title>ExerciseTracker</title>
<script type="text/javascript" src="cordova-1.7.0.js"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDD353fOPh-KBUQ-2ekPCg75uxXRn0D9Tk&sensor=false"></script>
<script type="text/javascript" src="json2.js"></script>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="jquery.mobile-1.1.0.min.js"></script>
<script type="text/javascript" src="exercisetracker.js"></script>
<link rel="stylesheet" href="jquery.mobile-1.1.0.min.css" />
</head>
<body>
<h1>Hello World</h1>
</body>
</html>
<div data-role="page" id="home">
<div data-role="header">
<h1>Home</h1>
<div data-role="navbar">
<ul>
<li><a href="#home" data-transition="none" data-icon="home">Home</a></li>
<li><a href="#startTracking" data-transition="none" data-icon="plus">Track Workout</a></li>
<li><a href="#history" data-transition="none" data-icon="star">History</a></li>
</ul>
</div>
</div>
<div data-role="content">
<p>Welcome to the <em>ExerciseTracker</em> app. By clicking <em>Track Workout</em> you can record your workouts using the GPS feature on your phone. Learn how to build this app by reading <em>mobile.tutsplus.com</em>.</p>
<button id="home_network_button" data-icon="check">Internet Access Enabled</button>
<button id="home_clearstorage_button">Clear local storage</button>
<button id="home_seedgps_button">Load Seed GPS Data</button>
</div>
</div>
<div data-role="page" id="startTracking">
<div data-role="header">
<h1>Track Workout</h1>
<div data-role="navbar">
<ul>
<li><a href="#home" data-transition="none" data-icon="home">Home</a></li>
<li><a href="#startTracking" data-transition="none" data-icon="plus">Track Workout</a></li>
<li><a href="#history" data-transition="none" data-icon="star">History</a></li>
</ul>
</div>
</div>
<div data-role="content">
<p id="startTracking_status"></p>
<div data-role="fieldcontain" class="ui-hide-label">
<label for="track_id">Track ID/Name:</label>
<input type="text" name="track_id" id="track_id" placeholder="Workout ID/Name"/>
</div>
<button data-role="button" id="startTracking_start">Start Tracking</button>
<button data-role="button" id="startTracking_stop">Stop Tracking</button>
<p id="startTracking_debug"></p>
</div>
</div>
<div data-role="page" id="history"> <div data-role="header"> <h1>History</h1> <div data-role="navbar"> <ul> <li><a href="#home" data-transition="none" data-icon="home">Home</a></li> <li><a href="#startTracking" data-transition="none" data-icon="plus">Track Workout</a></li> <li><a href="#history" data-transition="none" data-icon="star">History</a></li> </ul> </div> </div> <div data-role="content"> <p id="tracks_recorded"></p> <ul data-role="listview" id="history_tracklist"> </ul> </div> </div>
<div data-role="page" id="track_info"> <div data-role="header"> <h1>Viewing Single Workout</h1> <div data-role="navbar"> <ul> <li><a href="#home" data-transition="none" data-icon="home">Home</a></li> <li><a href="#startTracking" data-transition="none" data-icon="plus">Track Workout</a></li> <li><a href="#history" data-transition="none" data-icon="star">History</a></li> </ul> </div> </div> <div data-role="content"> <p id="track_info_info"></p> <div id="map_canvas" style="position:absolute;bottom:0;left:0;width:100%;height:300px;"></div> </div> </div>