-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
162 lines (139 loc) · 4.48 KB
/
index.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
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
// Advertisment
var myIndex = 0;
carousel();
function carousel() {
var x = document.getElementsByClassName("Slides");
var y = document.getElementsByClassName("text");
for (var i = 0; i < x.length; i++) {
x[i].style.display = "none";
y[i].style.color = "black";
}
myIndex++;
if (myIndex > x.length) {
myIndex = 1;
}
x[myIndex - 1].style.display = "block";
y[myIndex - 1].style.color = "#51c9a6";
setTimeout(carousel, 4000); // change in every 4 sec//
}
// START CONSULTATION
var btn = document.querySelectorAll(".SC_H_btn");
for (var i = 0; i < btn.length; i++) {
btn[i].addEventListener("click", function () {
window.location.href = "startConsultation.html";
});
}
// Blog
document.querySelector("#blog1").addEventListener("click", function () {
window.location.href = "blog1.html";
});
document.querySelector("#blog2").addEventListener("click", function () {
window.location.href = "blog2.html";
});
document.querySelector("#blog3").addEventListener("click", function () {
window.location.href = "blog3.html";
});
document.querySelector("#blog4").addEventListener("click", function () {
window.location.href = "blog4.html";
});
document.querySelector("#blog5").addEventListener("click", function () {
window.location.href = "blog5.html";
});
// SignIn
document.querySelector("#logIn").addEventListener("click", function () {
window.location.href = "signIn.html";
});
// SignIn_SignUp
var signin = document.querySelectorAll(".signin");
for (var i = 0; i < signin.length; i++) {
signin[i].addEventListener("click", function () {
window.location.href = "signin_signup.html";
});
}
// My Order
document.querySelector("#myOrder").addEventListener("click", function () {
window.location.href = "myOrder.html";
});
// My Profile
document.querySelector("#myProfile").addEventListener("click", function () {
window.location.href = "myProfile.html";
});
// My Question
document.querySelector("#myQuestion").addEventListener("click", function () {
window.location.href = "myQuestion.html";
});
// My Preferences
document.querySelector("#myPreferences").addEventListener("click", function () {
window.location.href = "myPreferences.html";
});
// Contact us
document.querySelector("#contact").addEventListener("click", function () {
window.location.href = "contactUs.html";
});
// Sell with us
document.querySelector("#sellWithUs").addEventListener("click", function () {
window.location.href = "sellWithUs.html";
});
// Top Categories
// deals
document.querySelector("#TC_deals").addEventListener("click", function () {
window.location.href = "TC_deals.html";
});
// Allopathy
var allopathy = document.querySelectorAll(".allopathy");
for (var i = 0; i < allopathy.length; i++) {
allopathy[i].addEventListener("click", function () {
window.location.href = "allopathy.html";
});
}
// Ayurveda
var ayurveda = document.querySelectorAll(".ayurveda");
for (var i = 0; i < ayurveda.length; i++) {
ayurveda[i].addEventListener("click", function () {
window.location.href = "ayurveda.html";
});
}
// Homeopathy
var homeopathy = document.querySelectorAll(".homeopathy");
for (var i = 0; i < homeopathy.length; i++) {
homeopathy[i].addEventListener("click", function () {
window.location.href = "homeopathy.html";
});
}
// Unani
var unani = document.querySelectorAll(".unani");
for (var i = 0; i < unani.length; i++) {
unani[i].addEventListener("click", function () {
window.location.href = "unani.html";
});
}
// Nutrition
var nutrition = document.querySelectorAll(".nutrition");
for (var i = 0; i < unani.length; i++) {
nutrition[i].addEventListener("click", function () {
window.location.href = "nutrition.html";
});
}
// Beauty
var beauty = document.querySelectorAll(".beauty");
for (var i = 0; i < beauty.length; i++) {
beauty[i].addEventListener("click", function () {
window.location.href = "beauty.html";
});
}
// SHOP BY HEALTH CONCERN
document.querySelector("#arthritis").addEventListener("click", function () {
window.location.href = "arthritis.html";
});
document.querySelector("#diabetes").addEventListener("click", function () {
window.location.href = "diabetes.html";
});
document.querySelector("#hairFall").addEventListener("click", function () {
window.location.href = "hairFall.html";
});
document.querySelector("#lowHeight").addEventListener("click", function () {
window.location.href = "lowHeight.html";
});
document.querySelector("#headache").addEventListener("click", function () {
window.location.href = "headache&Migraine.html";
});