-
Notifications
You must be signed in to change notification settings - Fork 2
/
walk-run.html
147 lines (143 loc) · 6.71 KB
/
walk-run.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Walking/Running</title>
<link rel="stylesheet" href="assets/css/reset.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:500, 900" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<link rel="stylesheet" href="assets/css/loggedin.css">
<link rel="apple-touch-icon" sizes="57x57" href="assets/icons/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="assets/icons/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="assets/icons/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="assets/icons/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="assets/icons/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="assets/icons/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="assets/icons/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="assets/icons/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="assets/icons/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="assets/icons/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="assets/icons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/icons/favicon-16x16.png">
<link rel="manifest" href="assets/icons/manifest.json">
<link rel="mask-icon" href="assets/icons/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="assets/icons/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<script src="https://www.gstatic.com/firebasejs/4.4.0/firebase.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
<script src="https://cdn.pubnub.com/sdk/javascript/pubnub.4.4.1.min.js"></script>
<script src="https://raw.github.com/nene/jintervals/master/jintervals.js"></script>
<script type="text/javascript" src="assets/js/walk-run.js"></script>
<script type="text/javascript" src="assets/js/authentication.js"></script>
<script type="text/javascript" src="assets/js/index.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAIV0dAOGRq72ZQ9OeuRHSMblRj1-noF2g&callback=initMap"></script>
</head>
<div class="modal" id="checkInModal">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<span>Check in</span>
<small>Each check in is worth 100 ponts</small>
</div>
<div class="modal-body" id="check-ins-modal">
</div>
<div class="modal-footer">
<h5></h5>
</div>
</div>
</div>
</div>
<body>
<div class="container-fluid">
<div class="row align-items-center justify-content-center" id="lnavMenu">
<div class="col-12 col-md-10">
<div class="row justify-content-between align-items-center">
<div class="col-2 col-md-2">
<img id="llogo" src="assets/images/logo-wh.png" alt="Wagtive Logo">
</div>
<div class="col-12 col-md-8">
<ul class="nav nav-pills justify-content-around">
<li class="nav-item">
<a class="nav-link" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="leaderboard.html">Leaderboard</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="activities.html" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Activities
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="walk-run.html">Walking/Running</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Meet-ups</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Challenges</a>
</div>
</li>
<li class="nav-item d-none d-md-block">
<a id="checkInButton" class="nav-link checkInButton" href="#" data-toggle="modal" data-target="#checkInModal">Check in</a>
</li>
<li class="nav-item">
<a class="nav-link" href="profile.html">Profile</a>
</li>
<li class="nav-item">
<a class="nav-link btn" id='logout' href="index.html">Logout</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="row justify-content-center" id="mainContainer">
<div class="col-md-9">
<nav class="breadcrumb">
<a class="breadcrumb-item" href="home.html">Home</a>
<a class="breadcrumb-item" href="activities.html">Activities</a>
<span class="breadcrumb-item active">Walking/Running</span>
</nav>
</div>
</div>
<div class="row justify-content-around mt-3 mt-md-1 justify-content-md-start" style="line-height: 5px">
<div class="col-2 d-none d-md-block"></div>
<div class="col-2 text-center">
<h4 class="timer">00:00</h4>
<br>
<span>Time</span>
</div>
<div class="col-2 text-center">
<h4 id="distanceOutput">00.00</h4>
<br>
<span>miles</span>
</div>
<div class="col-2 text-center">
<h4>0.0</h4>
<br>
<span>mi/min</span>
</div>
</div>
<div class="row mt-3 justify-content-center">
<div id="map" class="col-md-6">
</div>
<div class="row justify-content-center">
<div class="col-12 col-md-6 px-0 px-md-1 d-flex d-md-block flex-row justify-content-between justify-content-md-start flex-md-row">
<button id="start" class="btn btn-custom px-5 mr-3 mr-md-1 mt-5" type="submit">Start</button>
<button id="stop" class="btn btn-custom px-5 ml-3 ml-md-1 mt-5" type="submit">Stop</button>
</div>
<div id="output">
</div>
<div id="distance">
</div>
<div id="totalDistance">
</div>
</div>
</div>
</div>
</body>
</html>