forked from kunalchandel4/teamDeskChampions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Search.html
117 lines (113 loc) · 3.2 KB
/
Search.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
<!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>search</title>
<link rel="stylesheet" href="navbar.css">
<style>
form {
display: flex;
width: 85%;
height: 40px;
margin-left: 8%;
margin-top: 150px;
justify-content: center;
border-bottom: 1px solid;
}
form > input {
width: 97.5%;
border: 0;
}
form > button {
width: 2.1%;
border: 0;
background-color: white;
}
form img {
width: 100%;
}
#ingap {
display: flex;
position: absolute;
top: 84px;
right: 43%;
width: 13%;
justify-content: space-between;
cursor: pointer;
font-size: 12px;
}
#ingap p:hover {
text-decoration: underline;
}
#trends {
width: 4%;
line-height: 30px;
margin-left: 8.3%;
margin-top: 50px;
}
#trends p {
color: gray;
font-size: 12px;
}
#trends h5 {
font-size: 12px;
}
#trends p:hover {
text-decoration: underline;
cursor: pointer;
}
</style>
</head>
<body>
<div id="nav">
<a id="menu" href="">
<div id="one"></div>
<div id="two"></div>
<div id="three"></div>
</a>
<div id="logo">
<a href="index.html"> <img src="https://logodownload.org/wp-content/uploads/2014/05/zara-logo-1.png" alt="error">
</a> </div>
<div id="gap">
<div id="ingap">
<p>MEN</p>
<p>WOMEN</p>
<p>KIDS</p>
</div>
</div>
<a href="" id="search" style="color: white;">SEARCH</a>
<div id="loghelp">
<a is="userName" href="" id="lg"></a>
<a href="https://www.zara.com/in/en/help" target="blank">HELP</a>
</div>
<a id="cart" href="">
<img src="http://simpleicon.com/wp-content/uploads/Shopping-Cart-11.png" alt="">
<h5></h5>
</a>
</div>
<div id="searchbar">
<form>
<input type="search" style="font-size: 18px;" placeholder="ENTER SEARCH TERMS">
<button type="submit"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/55/Magnifying_glass_icon.svg/2048px-Magnifying_glass_icon.svg.png" alt=""></button>
</form>
</div>
<div id="trends">
<h5>TRENDS</h5>
<p>DRESS</p>
<p>TOP</p>
<p>BLAZER</p>
<p>JEANS</p>
</div>
</body>
</html>
<script>
let cartPro=JSON.parse(localStorage.getItem("cartdata")) || []
document.querySelector("h5").innerText=cartPro.length;
let logdata=JSON.parse(localStorage.getItem("Userdata")) || []
logdata.forEach(function(elem){
document.querySelector("#lg").innerText=elem.name;
})
</script>
<script src="navbar.js"></script>