-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
123 lines (115 loc) · 6.16 KB
/
index.html
File metadata and controls
123 lines (115 loc) · 6.16 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weight Prophecy</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog=="
crossorigin="anonymous" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link rel="stylesheet" href="index.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script>
<script type="module" src="index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>
<body>
<nav class="navbar navbar-light">
<div class="container">
<a class="navbar-brand font-weight-bold" style="color: rgb(236, 132, 101);" href="/">Weight Prophecy</a>
<div id="user-info">
<p id="user-name"></p>
<img src="" alt="" id="avatar-img"/>
</div>
</div>
</nav>
<div class="jumbotron mt-0" id='page-1'>
<div class="container">
<div class="form-inline">
<select class="form-control mr-2 mt-2" name="namesList" id="namesList"
></select>
<input class="form-control btn btn-info mr-2 mt-2" id="ok" type="submit" type="button" value="OK">
</div>
<p class="py-0 my-3 ml-5">or</p>
<form class="form-inline" id="newUser">
<input class="form-control mr-2 mt-2" type="text" name="name" id="name" placeholder="Input your name" />
<input class="form-control mr-2 mt-2" type="text" name="age" id="age" placeholder="Input your age" />
<input class="form-control btn btn-info mr-2 mt-2" type="submit" value="Submit">
</form>
</div>
</div>
<div class="mt-5 d-none" id="page-2">
<div class="container">
<div class="row">
<div class="stat col-12 col-md-6 mt-5 mt-md-0">
<h3 class="text-center">Enter Latest Weight</h3>
<div>
<form id="updateUser" class="form-row">
<div class="align-items-center">
<div class="col-auto ">
<label class="sr-only" for="inlineFormInput">Date</label>
<input type="date" class="form-control mr-3 mt-4" name="inputDate" id="inputDate">
</div>
<div class="col-auto">
<label class="sr-only" for="inlineFormInput">Weight</label>
<input type="test" class="form-control mr-3 mt-4" name="weight" id="weight" placeholder="Enter weight">
</div>
<div class="col-auto">
<button type="submit" id="input-weight" class="btn btn-primary mr-3 mt-4">Input weight</button>
</div>
</div>
</form>
</div>
<div id="message"></div>
<h3 class="text-center">Your Weight History</h3>
<div id="table-wrapper" class="mt-5">
<table class="table">
<tr>
<td>Date</td>
<td>Weight</td>
<td><i class="far fa-trash-alt"></i></td>
</tr>
</table>
</div>
<div class="chart-container mr-3 mt-4" >
<h3 class="text-center">Your Weight Chart</h3>
<canvas id="chart"></canvas>
</div>
</div>
<div class="predict col-12 col-md-6 mt-5 mt-md-0">
<h3 class="text-center">Check the Prophecy</h3>
<div>
<input class="form-control mr-3 mt-4" type="date" name="prediction-date" id="prediction-date">
<p class="text-danger d-none" id="prediction-date-error"></p>
<button class="form-control btn btn-primary btn-block mt-4" id="predict-weight">Predict weight<i class="fas fa-magic pl-3"></i></button>
<div id="result-empty"></div>
<div id="result-wrapper" class="d-none">
<h2 class="text-center mt-4">Your weight on</h2>
<h2 class="text-center" id="result-date"></h2>
<h2 class="text-center">will be</h2>
<div class="display-4 text-center text-success" id="result-weight"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="footer mb-5 pt-5">
<!-- Copyright -->
<div class="text-center">© 2020 Copyright: <strong>Jason Kim & Kalyani Arikati</strong>
</div>
</footer>
</body>
</html>