-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogameal.html
67 lines (57 loc) · 2.84 KB
/
logameal.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
<!DOCTYPE html>
<html lang="en">
<head>
<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 href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
<link rel="stylesheet" href="./css/main.css" type="text/css">
<link rel="stylesheet" href="./css/logameal.css" type="text/css">
<link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
<title>Nourish | Log a Meal</title>
</head>
<body>
<header class="logameal_header">
<a href="./landing.html"><img src="./images/return.png" alt="go back" class="header_back"></a>
</header>
<div class="container">
<article class="logameal_questions">
<p class="question">Time</p>
<input type="text" class="logameal_input" id="current_time_input" value="time"><br>
<p class="question">What did you have to eat or drink? (type and amount)</p>
<div>
<p>You can type in the answer below or take a picture!<br>
<!-- <button id="camera_button" class="header_back"> -->
<img id="camera_small" src="./images/camera.svg"></p>
</div>
<div class="camera">
<video id="video">Video stream not available.</video><br>
<!-- <button id="startbutton"> -->
<img id="startbutton" src="./images/camera.svg" class="camera_big">
<!-- </button> -->
</div>
<canvas id="canvas">
</canvas>
<div class="output">
<img id="photo" alt="The screen capture will appear in this box.">
<br>
</div>
<div>
<textarea id="q1" rows="5" columns="1" class="logameal_input" id="food_input"></textarea>
<p class="question">Did you feel as though you had too much?</p>No <input id ="q2" type="range" min="0" max="10"> Yes
<p class="question">Did you actually eat too much?</p>No <input id="q3" type="range" min="0" max="10"> Yes</br>
<p class="question">Did you manage to keep it down?</p><input type="checkbox" class="logameal_input" value="yes" id="yes">Yes<input type="checkbox" class="logameal_input" value="no" id="no">No</br>
<div id="what_happened">
<p class="question">What happened?</p><input type="checkbox" class="logameal_input" value="yes" id="vomit">Vomit<input type="checkbox" class="logameal_input" value="no" id="laxatives">Laxatives</br>
</div>
<p class="question">Where were you and what were you doing?</p><textarea id="q4" class="logameal_input" rows="4" cols="1"></textarea></br>
<p class="question">What thoughts and feelings did you have?</p><textarea id="q5" class="logameal_input" rows="5" cols="1" ></textarea></br>
</article>
<div id="submit_button" class="logameal_submit">
<a href='./logged.html'>Submit</a>
</div>
</div>
<script src="js/logameal.js"></script>
<script src="js/photo.js"></script>
</body>
</html>