-
Notifications
You must be signed in to change notification settings - Fork 3
/
log.html
61 lines (52 loc) · 2.18 KB
/
log.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<title>Chartjs</title>
</head>
<body>
<!-- sleep chart -->
<div class="container">
<h3 id="sleepHoursGoal"></h3>
<label for="startOne">Start date:</label>
<input type="date" id="startOne" name="trip-start">
<form>
<div class="form-row">
<div class="col">
<input type="number" name="sleepLog" id="sleepLog" class="form-control" placeholder="Hours Slept">
<button class="btn btn-info" id="sleepBtn">Log Sleep</button>
</div>
</div>
</form>
<h3 id="sleepProgress"></h3>
<canvas id="myChart"></canvas>
</div>
<!-- study chart -->
<div class="container">
<h3 id="studyHoursGoal"></h3>
<label for="start">Start date:</label>
<input type="date" id="start" name="trip-start">
<form>
<div class="form-row">
<div class="col">
<input type="number" id="minStudy" class="form-control" placeholder="Minutes Studied">
<button class="btn btn-info" id="studyBtn">Add Study
Minutes</button>
</div>
</div>
</form>
<!-- //<p>Date: <input type="text" id="datepicker"></p> -->
<canvas id="donutChart"></canvas>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js"></script>
<script src="/js/sleep.js"></script>
<script src="/js/study.js"></script>
</body>
</html>