-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
174 lines (150 loc) · 5.66 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./src/leaflet/dist/leaflet.css" />
<script src="./src/leaflet/dist/leaflet.js"></script>
<script type="text/javascript" src="./src/canvasjs/canvasjs.min.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>var module = {};</script>
<script src=./src/fit-parser.js></script>
<script src=./src/tkl-parser.js></script>
<script src=./src/main.js></script>
<style>
* {
box-sizing: border-box;
}
.container { border: 1p; padding: 6px;}
.column1 { width: 50%; float: left; padding: 5px; }
.column2 { width: 50%; height: 600px; float: left; padding: 2px;}
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 50%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content */
.modal-content {
position: relative;
background-color: #fefefe;
margin: auto;
padding: 8px;
border: auto; /* 0px solid #088; */
width: 180px;
left: 0;
top: 0;
}
/* The Close Button */
.close {
color: #aaaaaa;
float: right;
font-size: 24px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
</style>
</head>
<body>
<span>
<label for="myfile"><b>Local:</b></label>
<input id="myfile" type="file" value="" accept=".fit, .tkl"
style="padding: 0px; width:24mm; background: #ddd; size: 1"/>
     
<label for="selectURL"><b>URL:</b></label>
<select name="selectURL" id="selectURL">
<option value="https://connect.garmin.com/modern/activity/xxxxxxxxxx" selected> Garmin</option>
<option value="https://www.strava.com/activities/xxxxxxxxxx">Strava</option>
</select>
<input id="downloadURL" type="text" value="https://connect.garmin.com/modern/activity/xxxxxxxxxx"
style="width:340px"/>
<input id="download" type="button" value='Download'/>
 
<label for="files"><b>  Loaded files:</b></label>
<select name="files" id="files" style="min-width: 120px"></select>
</span>
   
<select name="mode" id="openmode">
<option value="automode"> auto mode</option>
<option value="manualmode">manual add</option>
</select>
<p style="line-height: 30px;">
   
<label for="xaxis">x-axis:</label>
<select name="x" id="xaxis" style="min-width: 80px">
</select>
   
<label for="ylist">y-axis:</label>
<select name="y" id="ylist" style="min-width: 80px"></select>
       
<input id="update" type="button" value='Update plot'/>
<input id="clean" type="button" value='Clean plot'/>
       
<input id="updateMap" type="button" value='Update map'/>
<input id="cleanMap" type="button" value='Clean map'/>
       
<input id="reload" type="button" value='Reload'/>
<div class="container">
<div class="column1" id="plotarea" style="width:50%; height:600px; padding-left: 0pt; margin-bottom: 10px;"></div>
<div class="column2" id="map" style="width:50%; height:600px; padding-right: 0pt; margin-bottom: 10px;"></div>
</div>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
<span>
<label for="lineThickness">Thickness:   Color:</label> <br>
<select name="lineThickness" id="lineThickness" style="border: 5px;">
<!-- <option value=''>Thickness:</option> -->
<option value=0.5>          0.5</option>
<option value= 1>          1.0</option>
<option value= 2>          2.0</option>
<option value= 4>          4.0</option>
<option value= 8>          8.0</option>
</select>
</span>
<input type="color" id="lineColοr" name="lineColοr" value="#00ff00" />
<!-- <p> -->
<!-- <label for="min">Min:</label> <input type="number" id="miny" name="miny" maxlength=5> -->
<!-- <label for="max">Max:</label> <input type="number" id="maxy" name="maxy" maxlength=5> -->
<!-- </p> -->
</div>
</div>
<p style="line-height: 60px;">
<label for="zoom">zoom:</label>
<select name="zoom" id="zoom">
<option value="x" selected> x-axis</option>
<option value="xy">x and y</option>
<option value="y">y-axis</option>
</select>
<!-- input id="saveRange" type="button" value='Save range'/> -->
   
<label for="legendaction">    Click in the legend:</label>
<select name="legendaction" id="legendaction">
<option value="hide_show">Hide/Show curve</option>
<option value="change">Thickness/color</option>
<option value="remove_curve">Remove curve</option>
<option value="filter_curve">Apply filter to curve</option>
</select>
   
<label for="medfil1bin">Median filter size: </label>
<input type="number" id="medfil1bin" name="mfs" min="0" value="0" style="width: 60px;">
<label for="averfil1bin">Average moving size: </label>
<input type="number" id="averfil1bin" name="avfs" min="0" value="0" style="width: 60px;">
</p>
<p style="font-size: 10px; text-align:center;"> fitplotter (c) karaul (2021) </p>
</body>
</html>