Skip to content

Commit 80f4d14

Browse files
committed
adds "drill" to stroke selection model
1 parent 8b04b06 commit 80f4d14

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

swim_data_analyser/static/css/styles.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
--second-color: #d9f2ff;
1414
--third-color: #a5bdfd;
1515
--fourth-color: #77529e;
16+
--fith-color: #fde725;
1617
}
1718

1819
/* Style for the top bar */
@@ -488,6 +489,10 @@ tr.butterfly {
488489
background-color: #FFFFD2;
489490
}
490491

492+
tr.drill{
493+
background-color: var(--fith-color);
494+
}
495+
491496
/* Responsive design for smaller screens */
492497
@media (max-width: 600px) {
493498
table {

swim_data_analyser/static/js/analyseView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ export function renderHeartratePlot(data) {
187187
freestyle: '#AA96DA',
188188
backstroke: '#FCBAD3',
189189
butterfly: '#FFFFD2',
190+
drill: '#fde725',
190191
default: '#fde725'
191192
};
192193

@@ -435,7 +436,7 @@ export function renderPacePlot(data) {
435436
freestyle: '#AA96DA',
436437
backstroke: '#FCBAD3',
437438
butterfly: '#FFFFD2',
438-
// Add more strokes here with fixed values if necessary
439+
drill: '#fde725',
439440
default: '#fde725' // Yellow
440441
};
441442

swim_data_analyser/static/js/editView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ export async function renderEditPlot() {
283283
freestyle: '#AA96DA',
284284
backstroke: '#FCBAD3',
285285
butterfly: '#FFFFD2',
286+
drill: '#fde725',
286287
default: '#fde725'
287288
};
288289

swim_data_analyser/templates/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ <h4>Select Swim Stroke</h4>
159159
<option value="breaststroke">Breaststroke</option>
160160
<option value="backstroke">Backstroke</option>
161161
<option value="butterfly">Butterfly</option>
162+
<option value="drill">Drill</option>
162163
</select>
163164
</div>
164165
<div class="modal-footer">

0 commit comments

Comments
 (0)