-
Notifications
You must be signed in to change notification settings - Fork 0
/
addmenu.html
109 lines (104 loc) · 3.9 KB
/
addmenu.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
<!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" />
<link rel = "icon" href ="images/logo1.png" type = "image/x-icon">
<title>Happy Work</title>
<link rel="stylesheet" href="main.css" />
<link rel="stylesheet" href="animate.css" />
<script type="text/javascript" src="index.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://kit.fontawesome.com/b17e1d038e.js" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.css" />
</head>
<body onload="onDocumentFinish()">
<nav class="navbar" id="nav">
<div class="container">
<a class="navbar-brand" href="index.html">
<img src="images/logo1.png" alt="" width="60" height="60" />
</a>
<a class="btn btn-primary" href="aboutus.html" role="button">ABOUT US</a>
<a class="btn btn-primary" href="addmenu.html" role="button" style="color: white; background: #C3C5F3; transform: translateY(-3px);">MENU</a>
<a class="btn btn-primary" href="index.html" role="button">HOME</a>
</div>
</nav>
<div class="main">
<div class="container">
<div id="section1">
<div class="input">
<h1 class="wow fadeInUp titlemenu">Add to Menu</h1>
<form id="formSubmit" onsubmit="submitItem()">
<input type="text" id="addMenu" name="addMenu" class="InputMenu wow fadeInUp" data-wow-delay="0.5s"
placeholder="Type Your Food Here" /><br />
<button id="btnSubmit" value="Submit" class="btnAdd wow fadeInUp" data-wow-delay="0.8s" type="submit">
Add Menu
</button>
</form>
</div>
<a href="#section2"><i class="fas fa-angle-down fa-4x wow fadeInUp" data-wow-delay="1.2s"></i></a>
</div>
<div id="section2">
<div class="ListMenu">
<h1 class="wow fadeInUp">List Menu</h1>
</div>
<table id="tableItem" class="wow fadeInUp" data-wow-delay=".3s">
<thead>
<tr>
<th>No.</th>
<th>Nama Makanan</th>
<th>Action</th>
</tr>
</thead>
<tbody class="tabelmakanan"></tbody>
</table>
</div>
<div id="section3">
<h1 class="wow fadeInUp listmenu" data-wow-delay=".6s">
GET YOUR FOOD
</h1>
<button class="btnRandom wow fadeInUp" data-wow-delay=".9s" onclick="randomize()">
RANDOMIZE
</button>
</div>
<div id="section4">
<div class="random wow fadeInUp" data-wow-delay="1.2s">
<ul class="isirandom">
<li id="breakfast">Breakfast :</li>
<br />
<li id="lunch">Lunch :</li>
<br />
<li id="dinner">Dinner :</li>
<br />
</ul>
</div>
<a href="#section1"><i class="fas fa-angle-up fa-4x wow fadeInUp"></i></a>
</div>
</div>
</div>
<script>
window.onscroll = function () {
scrollFunction();
};
function scrollFunction() {
if (
document.body.scrollTop > 50 ||
document.documentElement.scrollTop > 50
) {
document.getElementById("nav").style.padding = "0px";
} else {
document.getElementById("nav").style.padding = "5px";
}
}
</script>
<script src="wow.min.js"></script>
<script>
new WOW().init();
</script>
</body>
</html>