-
Notifications
You must be signed in to change notification settings - Fork 0
/
moodttracker.html
169 lines (145 loc) · 6.39 KB
/
moodttracker.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>REVIVE</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="shortcut icon" type="image/x-icon" href="favicon.png"/>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="moodtracker.css">
<title>Mood Tracker</title>
</head>
<body>
<!-- Dashboard -->
<div id="content" class="container">
<div class="jumbotron bg-info text-white">
<h1 class="display-4">Hey Buddy!</h1>
<hr class="my-4">
<p class="lead">Welcome to your daily mood tracker. how do you feel today?</p>
</div>
<div class="card">
<div class="card-body">
<center>
<b>Today is:</b> <h4 id="datedisplay">31 December 2019</h4>
</center>
</div>
</div>
<div class="row">
<div class="left-section col-lg-6">
<br>
<div class="card mood-block">
<div class="card-body">
<h4 class="text-center"><span id="moodBlock-month">December</span>'s Mood Chart</h4>
<hr class="my-4">
<!-- 4 -->
<div id="moodContainer">
<div class="justify-content-center" id="gridContainerLabel">
<div><span></span></div>
<div class="grid-label">Morning</div>
<div class="grid-label">Afternoon</div>
<div class="grid-label">Night</div>
</div>
</div>
</div>
</div>
<section name="moodblockLegends">
<br><br>
<table class="table table-hover">
<tbody>
<tr>
<th scope="row">
<div style="display: inline; border: none;" class="col-sm-2 grid-item moodType-5"></div>
<p style="display: inline-block;" class="col-sm-10">Amazing</p>
</th>
<td id="percentage-4">20%</td>
<td id="ratio-4">20 / 100</td>
</tr>
<tr>
<th scope="row">
<div style="display: inline;" class="col-sm-2 grid-item moodType-4"></div>
<p style="display: inline-block;" class="col-sm-10">Great</p>
</th>
<td id="percentage-3">20%</td>
<td id="ratio-3">20 / 100</td>
</tr>
<tr>
<th scope="row">
<div style="display: inline;" class="col-sm-2 grid-item moodType-3"></div>
<p style="display: inline-block;" class="col-sm-10">Average</p>
</th>
<td id="percentage-2">20%</td>
<td id="ratio-2">20 / 100</td>
</tr>
<tr>
<th scope="row">
<div style="display: inline;" class="col-sm-2 grid-item moodType-2"></div>
<p style="display: inline-block;" class="col-sm-10">Difficult</p>
</th>
<td id="percentage-1">20%</td>
<td id="ratio-1">20 / 100</td>
</tr>
<tr>
<th scope="row">
<div style="display: inline;" class="col-sm-2 grid-item moodType-1"></div>
<p style="display: inline-block;" class="col-sm-10">Very Tough</p>
</th>
<td id="percentage-0">20%</td>
<td id="ratio-0">20 / 100</td>
</tr>
</tbody>
</table>
</section>
</div>
<div class="right-section col-lg-6">
<br>
<section name="journal">
<div class="card">
<div class="card-header"><b>Journal</b></div>
<div id='journalCard' class="card-body">
</div>
</div>
<div id="journalCard" class="collapse">
<br>
<div class="card">
<div class="card-body">
<b>New Journal:</b> <span id="newjournalInputDate">20/05</span>
<hr>
<form id="form-newJournal">
<div class="form-group">
<label for="input-title">Title</label>
<input required autocomplete="off" type="text" class="form-control" id="input-title" placeholder="">
</div>
<div class="form-group">
<label for="input-journal">Write Something Here</label>
<textarea required class="form-control" id="input-journal" rows="3"></textarea>
</div>
<button id="btn-submission-newJournal" type="submit" class="btn btn-info btn-block">Add new journal entry </button>
</form>
</div>
</div>
</div>
<br>
<button type="btn-addJournal" class="btn btn-block btn-lg btn-outline-info" data-toggle="collapse" data-target="#journalCard">Write a Journal</button>
</section>
</div>
</div>
<br>
<div class="card">
<div class="card-body">
<h4>This year's progress:</h4>
<div class="progress" style="height: 3em;">
<div id="yearProgress" class="progress-bar progress-bar-animated progress-bar-step bg-info" role="progressbar" style="width: 1%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">0 - check JS</div>
</div>
<hr class="my-4">
<p><span id='lastDays'>32</span> day remaining until new year</p>
</div>
</div>
</div>
</body>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="main.js"></script>
<script scr="server.js"></script>
</html>