-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtopdeals.js
111 lines (77 loc) · 2.54 KB
/
topdeals.js
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
// Js for top deals part
document.getElementById("offerPrice").addEventListener("click", bedSheets);
document.getElementById("handBags").addEventListener("click", frocksPage);
document.getElementById("stylesAt").addEventListener("click", style69);
document.getElementById("lastOf").addEventListener("click", faballey);
// Js for Fashion steals part
document.getElementById("under399").addEventListener("click", under399);
document.getElementById("under699").addEventListener("click", under699);
document.getElementById("under999").addEventListener("click", under999);
// Js for what's hot part
document.getElementById("hotDeals").addEventListener("click", softSnugles);
document.getElementById("hotDeals1").addEventListener("click", easyTees);
document.getElementById("hotDeals2").addEventListener("click", sunnyDays);
document.getElementById("hotDeals3").addEventListener("click", ethnicVibes);
// Js for Top Categories
document.getElementById("Rkurta").addEventListener("click", rkurta);
document.getElementById("RTees").addEventListener("click", rtees);
document.getElementById("Rkids").addEventListener("click", rkids);
document.getElementById("navTees").addEventListener("click", navtees);
function navtees(){
window.location.href = "navProds.html"
}
function rkurta(){
window.location.href = "rangmunchKurta.html"
}
function rtees(){
window.location.href = "byfordTshirts.html"
}
function rkids(){
window.location.href = "ProductFrocks.html"
}
function bedSheets(){
window.location.href = "productBedSheets.html";
}
function frocksPage(){
window.location.href = "ProductFrocks.html"
}
function style69(){
window.location.href = "ProductAt69.html"
}
function faballey(){
window.location.href = "ProductFaballey.html"
}
function under399(){
window.location.href = "Product399.html";
}
function under699(){
window.location.href = "product699.html";
}
function under999(){
window.location.href = "product999.html";
}
function softSnugles(){
window.location.href = "ProductSnuggles.html";
}
function easyTees(){
window.location.href = "ProductTees.html"
}
function sunnyDays (){
window.location.href = "ProductSunny.html"
}
function ethnicVibes (){
window.location. href = "ProductEthnic.html"
}
// Selva's Work on login
document.querySelector("#login").addEventListener("click", login)
function login() {
window.location.href="login.html"
}
function profile() {
var ans = document.querySelector("#navprofile").value;
console.log(ans);
if (ans == "account")
{
window.location.href="myaccount.html"
}
}