-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
168 lines (154 loc) · 7.07 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
<!DOCTYPE html>
<html>
<head>
<title>Assignment</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div class="topnav">
<a class="active" href="#home"><img src="img/menu.svg" class="menu"></a>
<a href="#" style="padding-top: 30px;">MENU</a>
<div class="topnav-middle">
<a href="#"><img src="img/eatfresh-the-oneeeee-2.png"></a>
</div>
<div class="topnav-right">
<a class="menu-button1" href="#about">Bulk Order</a>
<a class="menu-button2" href="#about"><span><img src="img/shopping-cart.svg"></span> | ₹420 / 2 Items | <span><img src="img/right-arrow.svg"></span></a>
</div>
</div>
<section>
<p class="text-center">Today’s Menu <span><img src="img/angle-down.svg"></span></p>
<h3 class="text-center">2628, 27th main, HSR Layout</h3>
<div class="tab">
<button class="tablinks" onclick="desert(event, 'All')" id="defaultOpen">All</button>
<button class="tablinks" onclick="desert(event, 'Veg')">Veg</button>
<button class="tablinks" onclick="desert(event, 'Non-Veg')">Non-Veg</button>
<button class="tablinks" onclick="desert(event, 'Deserts')">Deserts</button>
<button class="tablinks" onclick="desert(event, 'Drink')">Drink</button>
</div>
<div id="All" class="tabcontent">
<div class="wrapper">
<div class="card1">
<img class="img-card" src="img/img.png">
<h3 style="float: left; padding-left: 10px;">Spiced Veg with Lemony Bulghar Wheat Salad</h3>
<h3 style="float: right; padding-right: 10px;">₹220</h3>
<div class="left-padded">
<div class="one-half">
<img src="img/oval-1.png" srcset="img/[email protected] 2x, img/[email protected] 3x" class="Oval-1">
<div class="stat" style="float: right;">Chef Sundar</div>
<div class="stat-value" style="float: right; margin: -10px;">Exec Chef, Taj Vivinta</div>
</div>
<div class="one-fourth">
<div class="stat"><img src="img/natural-food.png" srcset="img/[email protected] 2x, img/[email protected] 3x" class="natural_food"></div>
<div class="stat-value">Vegan Food</div>
</div>
<div class="one-fourth no-border">
<div class="stat layer">3.7</sup></div>
<div class="stat-value">Rating</div>
</div>
</div>
<div class="right-padded">
<button class="card-button1"><span><img src="img/minus-math.png"></span> 02 <span><img src="img/plus-math.png"></span></button>
</div>
</div>
<div class="card1">
<img class="img-card" src="img/img.png">
<h3 style="float: left; padding-left: 10px;">Spiced Veg with Lemony Bulghar Wheat Salad</h3>
<h3 style="float: right; padding-right: 10px;">₹220</h3>
<div class="left-padded">
<div class="one-half">
<img src="img/oval-1.png" srcset="img/[email protected] 2x, img/[email protected] 3x" class="Oval-1">
<div class="stat" style="float: right;">Chef Sundar</div>
<div class="stat-value" style="float: right; margin: -10px;">Exec Chef, Taj Vivinta</div>
</div>
<div class="one-fourth">
<div class="stat"><img src="img/natural-food.png" srcset="img/[email protected] 2x, img/[email protected] 3x" class="natural_food"></div>
<div class="stat-value">Vegan Food</div>
</div>
<div class="one-fourth no-border">
<div class="stat layer">3.7</sup></div>
<div class="stat-value">Rating</div>
</div>
</div>
<div class="right-padded">
<button class="card-button1"><span><img src="img/minus-math.png"></span> 02 <span><img src="img/plus-math.png"></span></button>
</div>
</div>
<div class="card1">
<img class="img-card" src="img/img.png">
<h3 style="float: left; padding-left: 10px;">Spiced Veg with Lemony Bulghar Wheat Salad</h3>
<h3 style="float: right; padding-right: 10px;">₹220</h3>
<div class="left-padded">
<div class="one-half">
<img src="img/oval-1.png" srcset="img/[email protected] 2x, img/[email protected] 3x" class="Oval-1">
<div class="stat" style="float: right;">Chef Sundar</div>
<div class="stat-value" style="float: right; margin: -10px;">Exec Chef, Taj Vivinta</div>
</div>
<div class="one-fourth">
<div class="stat"><img src="img/natural-food.png" srcset="img/[email protected] 2x, img/[email protected] 3x" class="natural_food"></div>
<div class="stat-value">Vegan Food</div>
</div>
<div class="one-fourth no-border">
<div class="stat layer">3.7</sup></div>
<div class="stat-value">Rating</div>
</div>
</div>
<div class="right-padded">
<button class="card-button1"><span><img src="img/minus-math.png"></span> 02 <span><img src="img/plus-math.png"></span></button>
</div>
</div>
<div class="card1">
<img class="img-card" src="img/img.png">
<h3 style="float: left; padding-left: 10px;">Spiced Veg with Lemony Bulghar Wheat Salad</h3>
<h3 style="float: right; padding-right: 10px;">₹220</h3>
<div class="left-padded">
<div class="one-half">
<img src="img/oval-1.png" srcset="img/[email protected] 2x, img/[email protected] 3x" class="Oval-1">
<div class="stat" style="float: right;">Chef Sundar</div>
<div class="stat-value" style="float: right; margin: -10px;">Exec Chef, Taj Vivinta</div>
</div>
<div class="one-fourth">
<div class="stat"><img src="img/natural-food.png" srcset="img/[email protected] 2x, img/[email protected] 3x" class="natural_food"></div>
<div class="stat-value">Vegan Food</div>
</div>
<div class="one-fourth no-border">
<div class="stat layer">3.7</sup></div>
<div class="stat-value">Rating</div>
</div>
</div>
<div class="right-padded">
<button class="card-button1"><span><img src="img/minus-math.png"></span> 02 <span><img src="img/plus-math.png"></span></button>
</div>
</div>
</div>
</div>
<div id="Veg" class="tabcontent">
</div>
<div id="Non-Veg" class="tabcontent">
</div>
<div id="Deserts" class="tabcontent">
</div>
<div id="Drink" class="tabcontent">
</div>
</section>
<script>
function desert(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " active";
}
// Get the element with id="defaultOpen" and click on it
document.getElementById("defaultOpen").click();
</script>
</body>
</html>