-
Notifications
You must be signed in to change notification settings - Fork 0
/
navigation.html
70 lines (69 loc) · 2.63 KB
/
navigation.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Signika" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" media="screen" href="css/style.css" />
<script type="text/javascript" src="https://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5ab88174f9a49214"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script>
$(document).ready(function(){
$(".add").click(function(){
var n=$(this).prev().val();
var num=parseInt(n)+1;
if(num==0){
return;
}
$(this).prev().val(num);
});
$(".min").click(function(){
var n=$(this).next().val();
var num=parseInt(n)-1;
if(num==0){ return}
$(this).next().val(num);
});
});
</script>
</head>
<body>
<div id="navigation">
<div id="title">
<div class="addthis_inline_share_toolbox_20fu"></div>
<p>e<span>MEAL</span></p>
<div id="sign">
<ul>
<li><a href="#">Sign in</a></li>
<li><a href="#">Sign up</a></li>
</ul>
</div>
</div>
<ul id="nav">
<li class="active"><a href="">HOME</a>
<li><a href="">STYLE</a>
<ul class="subnav">
<li><a href="#">Western</a></li>
<li><a href="#">Chinese</a></li>
<li><a href="#">Japanese</a></li>
</ul>
</li>
<li><a href="">PURPOSE</a>
<ul class="subnav">
<li><a href="#">Fitness</a></li>
<li><a href="#">Meat lover</a></li>
<li><a href="#">Vegetarian</a></li>
</ul>
</li>
<li><a href="">BOX SIZE</a></li>
<li><a href="">SHOPPING</a></li>
</ul>
<form id="search-form" method="post" >
<input type="text" placeholder="Search Here" />
</form>
</div>
</body>
</html>