-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
133 lines (119 loc) · 5.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<script src="script.js" defer></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
</head>
<body>
<div class="tab">
<main>
<nav>
<!-- <img class="imgg" src="img1.png" alt=""> -->
<h3 class="nav-h">Meal Planner</h3>
</nav>
<div id="form">
<form action="#" class="form-id">
<div class="first">
<input type="number" step="0.01" placeholder="Enter Height (in cm)" id="height" required/>
<input type="number" placeholder="Enter Weight (in kg)" id="weight" required/>
<input type="number" placeholder="Enter Age" id="age" required/>
</div>
<div class="form-second">
<select class="gender" id="gender">
<option value="other">Gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
</select>
<select class="mode" id="activity" value="Activity Level">
<option value="other">Activity Level</option>
<option value="light">Light</option>
<option value="moderate">Moderate</option>
<option value="active">Active</option>
</select>
</div>
<div class="form-third">
<button type="submit" id="mealsbtn" class="mybtn">Generate Meals</button>
</div>
</form>
</div>
<section id="meals" style="display: none;">
<div id="card">
<div class="cards">
<h3 class="top">BREAKFAST</h3>
<img src="img2.jpg" id="breakfast-image" class="card-img-top" alt="...">
<div class="card-body">
<p class="card-title" id="breakfast-name"></p>
<p class="card-text">Calories - <span class="calories">0</span></p>
<button class="button btn2" id="breakfast-btn" onclick="breakFastRecipe()">Get Recipe</button>
</div>
</div>
<div class="cards">
<h3 class="top">LUNCH</h3>
<img src="img2.jpg" id="lunch-image" class="card-img-top" alt="...">
<div class="card-body">
<p class="card-title" id="lunch-name"></p>
<p class="card-text">Calories - <span class="calories">0</span></p>
<button class="button btn2" id="lunch-btn" onclick="lunchRecipe()">Get Recipe</button>
</div>
</div>
<div class="cards">
<h3 class="top">DINNER</h3>
<img src="img2.jpg" id="dinner-image" class="card-img-top" alt="...">
<div class="card-body">
<p class="card-title" id="dinner-name"></p>
<p class="card-text">Calories - <span class="calories">0</span></p>
<button class="button btn2" id="dinner-btn" onclick="dinnerRecipe()">Get Recipe</button>
</div>
</div>
</div>
</section>
<section id="recepi" style="display: none;">
<div class="footer">
<ul class="nav nav-tabs" id="recepi-list" role="tablist">
<li class="nav-item">
<a class="nav-link" id="ingredients-tab" href="#ingredients" role="tab"
aria-controls="ingredients" aria-selected="true">Ingredients</a>
</li>
<li class="nav-item">
<a class="nav-link" id="step-tab" href="#step" role="tab" aria-controls="step"
aria-selected="false">Steps</a>
</li>
<li class="nav-item">
<a class="nav-link" id="equipment-tab" href="#equipment" role="tab" aria-controls="equipment"
aria-selected="false">Equipment</a>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane active" id="ingredients" role="tabpanel">
<ul id="list-of-ingredients" type="none"></ul>
</div>
<div class="tab-pane" id="step" role="tabpanel">
<ol id="steps">
</ol>
</div>
<div class="tab-pane" id="equipment" role="tabpanel">
<ol id="equip"></ol>
</div>
</div>
</div>
</section>
</main>
<script>
$('#recepi-list a').on('click', function (e) {
e.preventDefault()
$(this).tab('show')
})
</script>
</div>
</body>
</html>