-
Notifications
You must be signed in to change notification settings - Fork 1
/
cart4.html
55 lines (52 loc) · 1.85 KB
/
cart4.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>give order</title>
<link rel="stylesheet" href="./font_awesome/css/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="order.css">
</head>
<body>
<div class="navbar">
<div class="title">
<a>HOTEL MESS<a>
</div>
<ul class="link">
<li><a href="home1.html"><i class="fa fa-home" aria-hidden="true"></i>home</a></li>
<li><a href="order.html"><i class="fa fa-sticky-note" aria-hidden="true"></i> order</a></li>
<li><a href="receive.html"><i class="fa fa-download" aria-hidden="true"></i>receive</a></li>
</ul>
<img src="./profile.png" alt="profile pic">
<div class="toggle_btn">
<i class="fa fa-bars" aria-hidden="true" ></i>
</div>
</div>
<div class ="dropdown_menu">
<li><a href="home1.html">Home</li>
<li><a href="order.html">order</li>
<li><a href="receive.html">receive</li>
</div>
</header>
<section>
<div class="orders">
<div>
<img src="./idly.jpeg" alt="idly">
</div>
</div>
</section>
<script>
const toggleBtn = document.querySelector('.toggle_btn');
const toggleBtnIcon = document.querySelector('.toggle_btn i');
const dropDownMenu = document.querySelector('.dropdown_menu');
toggleBtn.onclick = function() {
dropDownMenu.classList.toggle('open');
const isOpen = dropDownMenu.classList.contains('open');
toggleBtnIcon.className = isOpen
? 'fa fa-times-circle'
: 'fa fa-bars';
}
</script>
</body>
</html>