-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
171 lines (167 loc) · 5.79 KB
/
index.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
170
171
<!DOCTYPE html>
<html lang="en">
<!-- HEAD -->
<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" />
<title>Cat Food Calculator</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Nunito&display=swap"
rel="stylesheet"
/>
<link href="styles.css" type="text/css" rel="stylesheet" />
</head>
<!-- BODY -->
<body>
<!-- HEADER -->
<header>
<img
id="logo"
src="images/logo.png"
alt="Logo: Cat Food Calculator"
title="Logo: Cat Food Calculator"
/>
</header>
<!-- MAIN -->
<div id="wrapper">
<main>
<br />
<!-- intro -->
<h1 class="colorSchemeNormal">How much my cat should eat?</h1>
<p id="intro">Give me some information and I'll tell you how many grams of food your
cat needs per day!🙂
</p>
<img
id="arrow"
src="images/down_arrow.png"
alt="down arrow"
title="down arrow"
/>
<!-- BEGIN div that hiddes after submitting -->
<div id="hideForm">
<!-- BEGIN form -->
<form id="myForm">
<fieldset>
<p id="mandatory" class="colorSchemeNormal">*These fields are mandatory</p>
<!-- nameCat -->
<label
><p class="colorSchemeNormal">Cat's name</p>
<p class="marginBottom">
<input
class="nameCat"
type="text"
name="nameCat"
size="15"
maxlength="30"
/></p
></label>
<!-- age -->
<label
><p class="colorSchemeNormal">Age</p>
<p class="marginBottom">
<select class="age" name="age">
<option value="youngerKitten">0-4 months</option>
<option value="olderKitten">5-12 months</option>
<option value="adult" selected>1-6 years</option>
<option value="senior">>6 years</option>
</select>
</p></label
>
<!-- weight -->
<label
><p class="colorSchemeNormal">*Cat's weight (enter a value in kg, e.g. 3.5)</p>
<p class="marginBottom">
<input
id="weight"
type="text"
name="weight"
size="15"
maxlength="30"
/></p
></label>
<!-- isSterilised -->
<label
><p class="colorSchemeNormal">Spayed, Neutered or Intact</p>
<p class="marginBottom">
<select class="isSterilised" name="isSterilised">
<option value="intact">intact</option>
<option value="spayed">spayed/neutered</option>
</select>
</p></label
>
<!-- activity -->
<label
><p class="colorSchemeNormal">Active or sedentary lifestyle</p>
<p class="marginBottom">
<select class="lifestyle" name="activity">
<option value="active">active</option>
<option value="sedentary">sedentary</option>
</select>
</p></label
>
<!-- isOverWeight -->
<label
><p class="colorSchemeNormal">Is overweight?</p>
<p class="marginBottom">
<select class="overweight" name="isOverweight">
<option value="no">No</option>
<option value="yes">Yes</option>
</select>
</p></label
>
<!-- nameCatFood -->
<label
><p class="colorSchemeNormal">Enter the name of the food you use</p>
<p class="marginBottom">
<input
class="nameFood"
type="text"
name="nameCatFood"
size="15"
maxlength="30"
/></p
></label>
<!-- caloriesOfFood -->
<label
><p class="colorSchemeNormal">*Enter calories per kg of food, e.g. 3800</p>
<p class="marginBottom">
<input
class="calories"
type="text"
name="caloriesOfFood"
size="15"
maxlength="30"
/>
</p>
<!-- submit button -->
<p class="marginBottom">
<button type="button" class="btn submit">Submit</button>
</p></label
>
</fieldset>
</form>
<!-- END form -->
</div>
<!-- END div that hiddes after submitting -->
<!-- Here will be displayed the result -->
<div id="output"></div>
<!-- Refresh button that appears after submitting -->
<div id="refreshButton"><button class="btn">Try again</button></div>
</main>
<!-- FOOTER -->
<footer>
<ul>
<li>Author: Natalia Domanska</li>
<li>E-mail: <a href="mailto:nataliaidomanska@gmail.com"
>nataliaidomanska@gmail.com</a
>
</li>
<li>Copyright©</li>
</footer>
</div>
<script src="script.js"></script>
</body>
</html>