-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
178 lines (162 loc) · 6.74 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="shortcut icon" type="image/png" href="/icon.png" />
<link
href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="fontello/css/fontello.css" type="text/css" />
<link rel="stylesheet" href="style.css" />
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""
/>
<script
defer
src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""
></script>
<script defer src="script.js"></script>
<title>mapty // Map your workouts</title>
</head>
<body>
<div class="sidebar">
<img src="logo.png" alt="Logo" class="logo" />
<ul class="workouts">
<div class="operations">
<button class="show__sort__btns">Sort</button>
<div>
<button class="show__sort__btns overview__btn">Overview</button>
<button class="show__sort__btns clr__all__btn">Clear All</button>
</div>
</div>
<div class="sort__buttons__container no__height">
<button data-type ="date" class="sort__button"><span class="workout__icon">📆</span> <span class="arrow">🠕</span></button>
<button data-type ="distance" class="sort__button"><span class="workout__icon">🏃♂️</span> <span class="arrow">🠕</span></button>
<button data-type ="duration" class="sort__button"><span class="workout__icon">⏱</span> <span class="arrow">🠕</span></button>
<button data-type ="pace" class="sort__button"><span class="workout__icon">⚡️</span> <span class="arrow">🠕</span></button>
<button data-type ="cadence" class="sort__button"><span class="workout__icon">🦶🏼 </span> <span class="arrow">🠕</span></button>
<button data-type ="elevationGain" class="sort__button"><span class="workout__icon">⛰</span> <span class="arrow">🠕</span></button>
</div>
<hr class="sort__divider">
<form class="form hidden">
<div class="form__row">
<label class="form__label">Type</label>
<select class="form__input form__input--type">
<option value="running">Running</option>
<option value="cycling">Cycling</option>
</select>
</div>
<div class="form__row">
<label class="form__label">Distance</label>
<input class="form__input form__input--distance" placeholder="km" />
</div>
<div class="form__row">
<label class="form__label">Duration</label>
<input
class="form__input form__input--duration"
placeholder="min"
/>
</div>
<div class="form__row">
<label class="form__label">Cadence</label>
<input
class="form__input form__input--cadence"
placeholder="step/min"
/>
</div>
<div class="form__row form__row--hidden">
<label class="form__label">Elev Gain</label>
<input
class="form__input form__input--elevation"
placeholder="meters"
/>
</div>
<button class="form__btn">OK</button>
</form>
<div class="icon-div">
<img src="dumbbell.svg" class="icon"/>
</div>
<!-- <li class="workout workout--running" data-id="1234567890">
<h2 class="workout__title">Running on April 14</h2>
<div class="workout__details">
<span class="workout__icon">🏃♂️</span>
<span class="workout__value">5.2</span>
<span class="workout__unit">km</span>
</div>
<div class="workout__details">
<span class="workout__icon">⏱</span>
<span class="workout__value">24</span>
<span class="workout__unit">min</span>
</div>
<div class="workout__details">
<span class="workout__icon">⚡️</span>
<span class="workout__value">4.6</span>
<span class="workout__unit">min/km</span>
</div>
<div class="workout__details">
<span class="workout__icon">🦶🏼</span>
<span class="workout__value">178</span>
<span class="workout__unit">spm</span>
</div>
</li>
<li class="workout workout--cycling" data-id="1234567891">
<h2 class="workout__title">Cycling on April 5</h2>
<div class="workout__details">
<span class="workout__icon">🚴♀️</span>
<span class="workout__value">27</span>
<span class="workout__unit">km</span>
</div>
<div class="workout__details">
<span class="workout__icon">⏱</span>
<span class="workout__value">95</span>
<span class="workout__unit">min</span>
</div>
<div class="workout__details">
<span class="workout__icon">⚡️</span>
<span class="workout__value">16</span>
<span class="workout__unit">km/h</span>
</div>
<div class="workout__details">
<span class="workout__icon">⛰</span>
<span class="workout__value">223</span>
<span class="workout__unit">m</span>
</div>
</li> -->
</ul>
<p class="copyright">
© Copyright by
<a
class="twitter-link"
target="_blank"
href="https://twitter.com/jonasschmedtman"
>Jonas Schmedtmann</a
>. JS tutorial project. Features such as: sort by property, remove workouts and overview implemented by
<a
href="https://github.com/agradecki"
style="color: var(--color-brand--1)"
>Alan Gradecki</a
>
</p>
</div>
<div id="map"></div>
<div class="confirmation__msg msg__hidden">
<div class="msg">
<div class="question">
<h1>Are you sure you want to <span>clear all</span> entries?</h1>
</div>
<div class="msg__buttons">
<button class="choice__button yes__button">YES</button>
<button class="choice__button no__button"> NO</button>
</div>
</div>
</div>
</body>
</html>