-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmental-health.html
80 lines (69 loc) · 3.1 KB
/
mental-health.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
<!DOCTYPE html>
<html lang="en">
<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/mentalhealth.css">
<title>Mental Health</title>
</head>
<body>
<div class="wrapper">
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="chart.html">Nutrition</a></li>
<li><a href="mental-health.html">Mental Health</a></li>
<li><a href="exercise-options.html">Exercise Options</a>
<ul>
<li><a href="exercises.html">Exercises</a></li>
<li><a href="exercises-goal-game.html">Goal & Game</a></li>
<li><a href="exercise-challenge.html">Challenge</a></li>
</ul>
</li>
<li><a href="profile.html">Profile</a></li>
</ul>
</nav>
<div class="page-title">Mental Health</div>
<div>
<ul class="breadcrumb">
<li><a href="index.html">Home</a></li>
<li>Mental Health</li>
</ul>
<ul class="breadcrumb">
<li><a href="index.html">Home</a></li>
<li>Mental Health</li>
</ul>
</div>
<div class="text" id="prompt"><i>How are you feeling today?</i></div>
<div class="buttons">
<div class="radio-buttons">
<input type="radio" id="radioExcited" name="mood" value="excited">
<label for="radioExcited">😄<br>excited</label>
<input type="radio" id="radioGood" name="mood" value="good">
<label for="radioGood">😀<br>good</label>
<input type="radio" id="radioNeutral" name="mood" value="neutral" checked>
<label for="radioNeutral">😐<br>neutral</label>
<input type="radio" id="radioBad" name="mood" value="bad">
<label for="radioBad">😔<br>bad</label>
<input type="radio" id="radioAwful" name="mood" value="awful">
<label for="radioAwful">😖<br>awful</label>
<input type="radio" id="radioUnsure" name="mood" value="unsure">
<label for="radioUnsure">😕<br>unsure</label>
</div>
<button type="button" id="enter" onclick="displayDate()">ENTER</button>
</div>
<div class="text" id="mood">-----</div>
<div class="text" id="showDate">-----</div>
<a href="javascript:history.go(-1)" class="previous-page"><b>‹</b></a>
<script>
function displayDate() {
var checkedMood = document.querySelector('input[name = mood]:checked').value;
document.getElementById("mood").innerHTML = 'Your mood: ' + checkedMood;
var d = new Date();
document.getElementById("showDate").innerHTML = "Date: " + d.toDateString();
}
</script>
</div>
</body>
</html>