-
Notifications
You must be signed in to change notification settings - Fork 6
/
shopbuddy.html
256 lines (222 loc) · 10.1 KB
/
shopbuddy.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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<!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>shoplocal</title>
<link rel="stylesheet" href="shopbuddy.css">
<script src="https://kit.fontawesome.com/f276ecc4c7.js" crossorigin="anonymous"></script>
<script src="https://kit.fontawesome.com/d042af9a63.js" crossorigin="anonymous"></script>
<link rel="icon" type="image/x-icon" href="https://img.shop.com/Image/resources/logos/shop-s-logo-icon.svg">
</head>
<body>
<!-- .................................NAvBAr Started Here........................................... -->
<div class="top-section">
<p>1st time customers save 25% on SHOP.COM exclusive brands using code FIRST250FF. Max $25 discount. Terms Apply. <span style="text-decoration: underline;">Click Here</span> </p>
</div>
<!-- ...................................Whole NavBar Section...................... -->
<div class="navbar">
<div class="nav-first-section">
<!-- ............................logo-div(1st-part-of-navbar)......................................................... -->
<div class="logo" style="flex:1 ; width:30%">
<img src="https://img.shop.com/Image/resources/logos/shop-logo-us.svg" alt="" style="flex:1 ; width:40%">
</div>
<!-- ............................Input-section-div(1st-part-of-navbar)......................................................... -->
<div class="input-section" style="flex:2 ">
<form action="" id="form" style="display: flex;">
<select id="NamesSorting">
<option value="empty">All Departments</option>
<option value="Auto">Auto</option>
<option value="Beauty">Beauty</option>
<option value="Books">Books</option>
<option value="Business">Business</option>
<option value="Cameras">Cameras</option>
<option value="Clothes">Clothes</option>
</select>
<div style="display: flex; width: 100%; border-left:1px solid black;">
<input id="search" type="text" placeholder="Search SHOP.COM..." class="nav-bar-input">
<i id="mic"class="fa-solid fa-microphone"></i>
<button class="btn1">
<i class="fa fa-search" aria-hidden="true" style="color:white"></i>
</button>
</div>
</form>
</div>
<!-- ............................LayeredSale div img section(1st-part-of-navbar)......................................................... -->
<div class="second-logo" style="flex:1 ">
<img src="https://img.shop.com/Image/header2013/layered-us-eng-105972-blk-friday-banner-300x50-11670940062489.jpg" alt="">
</div>
</div>
<!-- ................................1st part of navbar ended here -->
<!-- ................................2ndst part of navbar started from here............................ -->
<div class="nav-second-section">
<div id="navigation">
<div id="menu" onclick="onClickMenu()">
<div id="bar1" class="bar"></div>
<div id="bar2" class="bar"></div>
<div id="bar3" class="bar"></div>
</div>
<ul class="nav" id="nav">
<h4>Categories</h4>
<li><a href="#">Onecart Exclusive Deals</a></li>
<li><a href="clothe.html">Cloths</a></li>
<li><a href="shoes.html">Shoes</a></li>
<li><a href="beauty.html">Beauty</a></li>
<li><a href="Home.html">Home</a></li>
<li><a href="#">Electronics</a></li>
<li><a href="health.html">Healths & Nutrition</a></li>
<li><a href="jwellery.html">jewelry</a></li>
<li><a href="kids.html">Kids</a></li>
<li><a href="pet.html">Pet Supplies</a></li>
<li><a href="Food.html">Food & Drink</a></li>
<li><a href="sports.html">Sports</a></li>
<li><a href="#">Travel</a></li>
</ul>
</div>
<div class="child">
<a href="exclusive.html">Exclusive Brands</a>
<a href="clothe.html">Stores</a>
<a href="beauty.html">Deals</a>
<a href="">SHOP Travel</a>
<a href="">Departments</a>
<a href="">ShopBuddy</a>
<a href="shoplocal.html">SHOP Local</a>
</div>
<div class="child-second-section">
<a href="./signinPage/signin.html" class="signIn" id="signin-page1"><i class="fa-solid fa-circle-user "
style="font-size: 1.7rem ;padding-right: 7px;"></i> <span id="user-name">Sign In </span> </a>
<a href="./orderpage/orderpage.html" class="signIn" id="order-page1"><i class="fa-solid fa-rotate-left"
style="font-size: 1.7rem ;padding-right: 7px;"></i>Orders</a>
<div class="cart-section">
<a href="./cartpage/cartpage.html" class="signIn" id="cart-page1"><i class="fa-solid fa-cart-shopping"
style="font-size: 1.7rem ;padding-right: 7px;"></i>Cart</a>
<p class="cart-count">0</p>
</div>
</div>
</div>
</div>
<!-- ....................................................NAVBAR END..................................... -->
<!-- ................................Footer Section Start.............................. -->
<div class="footer-section">
<div class="first-div">
<div>
<label for="fname">Get Email Deals & Earn Cashback</label>
<input type="email" id="fname" name="fname" class="emailbox" placeholder="enter email address...">
<button id="sign-up">Sign Up</button>
</div>
<div>
<span>Link To This Page & Tell All Your Friends!</span>
<button>
Copy Link
</button>
</div>
</div>
<div class="second-div">
<div>
<a href="#">About Us</a >
<a href="#">Help</a >
<a href="#">Accessibility Statement</a >
<a href="#">Contact Us</a >
<a href="#">Partner With US</a >
<a href="#">Services</a >
<a href="#">Country/region</a >
<a href="#">Connect</a >
<a href="#">Own Your Own SHOP Site</a >
</div>
<div class="footer-logos">
<img src="mail.png" alt="">
<img src="facebook-app-symbol.png" alt="">
<img src="twitter.png" alt="">
<img src="pinterest.png" alt="">
</div>
</div>
<div class="footer-copyright-section">
<p> 1997-2023 Market America, Inc. or its affiliates. All other designated trademarks, copyrights, and brands are the property of their respective owners.</p>
<p> Only Customers will receive cashback on qualifying purchases. UnFranchise Owners/Shop Consultants will receive increased IBV instead of cashback on qualifying purchases.</p>
<a href="#" class="links">Privacy Policy</a>
<a href="#" class="links">Terms of Use</a>
<a href="#" class="links">Advertising Disclosure</a>
<a href="#" class="links">Shipping Information</a>
<a href="#" class="links">Do Not Sell My Information</a>
</div>
<div class="footer-img-section">
<img src="https://img.shop.com/Image/images/ir/Shop-ranks-19-in-newsweek-circle.png" alt="">
<img src="https://img.shop.com/Image/images/ir/DC360_2022_rank_10_top_500_primary_merch_category.png" alt="">
<img src="https://img.shop.com/Image/images/ir/DC360_2022_rank_55_top_100.png" alt="">
<img src="https://img.shop.com/Image/images/ir/DC360_2022_rank_80_top_500_and_1000.png" alt="">
<img src="https://img.shop.com/Image/images/ir/Shop-ranks-13-in-NC-circle.png" alt="">
<img src="https://img.shop.com/Image/images/ir/commonwealth_2022_rank_22_top_2000_tw_english.png" alt="">
<img src="https://img.shop.com/Image/resources/images/torch-tafe2018-badge.png" alt="">
<img src="https://www.shop.com/feo-cdn/_/N/37zALkhvc.webp" alt="">
</div>
</div>
</body>
</html>
<script>
function onClickMenu() {
document.getElementById("menu").classList.toggle("icon");
document.getElementById("nav").classList.toggle("change");
}
// cart
var count = localStorage.getItem("cartcount") || 0;
document.querySelector(".cart-count").innerText = count;
// search functionality
document.querySelector(".btn1").addEventListener("click",funsearch);
function funsearch(){
event.preventDefault();
var key=document.querySelector("#search").value;
key=key.toUpperCase();
if(key.includes("BEAUTY")){
window.open("beauty.html","_self");
document.querySelector("#search").value="";
}else if(key.includes("CLOTH")){
window.open("clothe.html","_self");
document.querySelector("#search").value="";
}else if(key.includes("FOOD")){
window.open("food.html","_self");
document.querySelector("#search").value="";
}else if(key.includes("HEALTH")){
window.open("health.html","_self");
document.querySelector("#search").value="";
}else if(key.includes("HOME")){
window.open("home.html","_self");
document.querySelector("#search").value="";
}else if(key.includes("JWELLERY")){
window.open("jwellery.html","_self");
document.querySelector("#search").value="";
}else if(key.includes("KIDS")){
window.open("kids.html","_self");
document.querySelector("#search").value="";
}else if(key.includes("PET")){
window.open("pet.html","_self");
document.querySelector("#search").value="";
}else if(key.includes("SHOES")){
window.open("shoes.html","_self");
document.querySelector("#search").value="";
}
else if (key.includes("ELECTRONICS")) {
window.open("electronic.html", "_self");
document.querySelector("#search").value = "";
}else if(key.includes("SPORTS")){
window.open("sports.html","_self");
document.querySelector("#search").value="";
}else{
alert("item not found");
}
}
// homepage
document.querySelector(".logo").addEventListener("click",function(){
window.open("project.html");
});
// microphone
const button = document.querySelector('#mic');
const textInput = document.querySelector('#search');
button.addEventListener('click', () => {
const recognition = new webkitSpeechRecognition();
recognition.onresult = event => {
textInput.value = event.results[0][0].transcript;
};
recognition.start();
});
</script>