-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_exercise.html
118 lines (110 loc) · 3.09 KB
/
custom_exercise.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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/custom_exercise.css" />
<link
rel="icon"
type="image/vnd.microsoft.icon"
href="assets\ico\favicon.ico"
/>
<script src="js/custom_exercise.js" defer></script>
<title>ATEM</title>
<link rel="manifest" href="manifest.json" />
<script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker
.register("service-worker.js")
.then((registration) => {
console.log("Service Worker registered:", registration);
})
.catch((error) => {
console.log("Service Worker registration failed:", error);
});
});
}
</script>
</head>
<body>
<!-- Zurück-Button -->
<a href="index.html" id="transition-link">
<img
src="assets\svg\arrow_back_ios_FILL0_wght400_GRAD0_opsz48.svg"
alt="Zurück"
id="back"
/>
</a>
<!-- Timer -->
<div id="timer">00:00</div>
<!-- Übungsanweisung -->
<div id="instruction"></div>
<!-- Infobox -->
<div id="info-box">
<p id="info-text">
Bestimme die Werte der Atemübung nach deinen eigenen Bedürfnissen.
</p>
<!-- Eingabefelder und Beschreibungen -->
<input
type="text"
id="inhaleDurationInput"
class="inputField"
placeholder=""
onblur="getInputs()"
/>
<p id="inhaleDurationDescription" class="description">
Dauer der Einatmung
</p>
<input
type="text"
id="inhaleHoldDurationInput"
class="inputField"
placeholder=""
onblur="getInputs()"
/>
<p id="inhaleHoldDurationDescription" class="description">
Dauer des Atemanhaltens nach der Einatmung
</p>
<input
type="text"
id="exhaleDurationInput"
class="inputField"
placeholder=""
onblur="getInputs()"
/>
<p id="exhaleDurationDescription" class="description">
Dauer der Ausatmung
</p>
<input
type="text"
id="exhaleHoldDurationInput"
class="inputField"
placeholder=""
onblur="getInputs()"
/>
<p id="exhaleHoldDurationDescription" class="description">
Dauer des Atemanhaltens nach der Ausatmung
</p>
<input
type="text"
id="repetitionInput"
class="inputField"
placeholder=""
onblur="getInputs()"
/>
<p id="repitionsDescription" class="description">
Anzahl der Wiederholungen
</p>
<h2 id="start-btn">Start</h2>
</div>
<!-- Animierter Atemkreis -->
<div id="circle"></div>
<!-- Marker für Animation -->
<div id="inner-marker"></div>
<div id="outer-marker"></div>
<!-- Runde Fortschrittsanzeige -->
<div id="circular-progress"></div>
</body>
</html>