-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
68 lines (66 loc) · 2.8 KB
/
index2.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
<!DOCTYPE html>
<html lang="pl">
<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>Recipe searcher</title>
<link rel="stylesheet" href="style.css">
<script src="src/api.js" defer></script>
<script src="src/recipes.js" defer></script>
</head>
<body>
<div class="container">
<div class="header">
</div>
<div class="menu">
<hr>
<ul>
<li id="first-li"><a href="index.html">Calories calculator</a></li>
<li><a href="index2.html">Recipe searcher</a></li>
</ul>
<hr>
</div>
<form class="inputBar searchForm">
<input type="text" id="query" placeholder="What do you like...">
<input type="number" id="calories" placeholder="Calories per day..." min="1" max="10000" required>
<select id="amount" form="searchForm">
<option value="5">5</option>
<option value="10" selected>10</option>
<option value="15">15</option>
<option value="20">20</option>
</select><label for="amount"><p class="weird-font">recipes</p></label>
<input type="button" id="calc" value="Calculate" onclick="showCalc()">
<input type="submit" id="submit" value="Search">
</form>
<form class="inputBar calculatorForm">
<div>
<input type="number" id="weight" placeholder="Weight..." min="1" max="500" required><label for="weight">kg</label>
</div>
<div>
<input type="number" id="height" max="300" placeholder="Height..." min="1" required><label for="height">cm</label>
</div>
<div>
<input type="number" id="age" placeholder="Age..." min="1" max="110" required>
</div>
<div>
<input type="radio" id="male" name="gender" value="male" checked><label for="male">Male</label>
</div>
<div>
<input type="radio" id="female" name="gender" value="female"><label for="female">Female</label>
</div>
<div><input type="range" id="activityLevel" min="0" max="5" value="2"><br/><label for="activityLevel">Activity level</label></div>
<div>
<input type="number" id="bodyFat" placeholder="Body fat..." min="1" max="100"><label for="bodyFat">%</label>
</div>
<input type="submit" id="submit" value="Calculate">
</form>
<ul id="recipes">
</ul>
<input type="button" id="moreBtn" value="Load more" onclick="loadMore()">
<div class="footer">
© wiatrgonifale 2019
</div>
</div>
</body>
</html>