-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (57 loc) · 1.94 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/x-icon" href="favicon.png" />
<title>The WakeUpTimes App</title>
<!-- <link
href="<https://fonts.googleapis.com/css?family=Roboto>"
rel="stylesheet"
/> -->
<link rel="stylesheet" href="index.css" />
</head>
<body>
<main id="app">
<section id="prompt-section">
<h1>WakeUpTimes App</h1>
<p>
A sleep cycle lasts about 90 minutes, and a good night's sleep
consists of 5-6 sleep cycles.
</p>
<p>
If you wake up in the middle of a sleep cycle, you will feel groggy,
even if you've completed several cycles prior to waking up.
</p>
<p>If you go to bed now, when should you wake up?</p>
<button id="calc-btn">Calculate</button>
</section>
<div id="img-container">
<img src="moon.png" alt="Sleep Cycle" />
</div>
<section id="result-section" class="hidden">
<div class="button-group">
<button id="return-btn">←</button>
<button id="refresh-btn">Refresh</button>
</div>
<p>
If you go to bed right now<sup>*</sup>, try to wake up at one of these
times:
</p>
<div id="wakeup-hours-div" class="wakeup-hours">
<div id="cycle-1" class="cycle">12:15 AM</div>
<div id="cycle-2" class="cycle">1:45 AM</div>
<div id="cycle-3" class="cycle">3:15 AM</div>
<div id="cycle-4" class="cycle">4:45 AM</div>
<div id="cycle-5" class="cycle">6:15 AM</div>
<div id="cycle-6" class="cycle">7:45 AM</div>
</div>
<p>
<sup>*</sup>It takes the average human fourteen minutes to fall
asleep.
</p>
</section>
</main>
<script src="index.js"></script>
</body>
</html>