-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCompany_Page.js
302 lines (293 loc) · 8.47 KB
/
Company_Page.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
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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
var data = [
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/18850.gif",
company: "Oracle",
rating: "⭐ 3.9 | 3.5K+ reviews",
claim: "Cloud technology company since 1977.",
button: "View jobs",
filter: "BPM(12)",
},
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/194354.gif",
company: "HCL",
rating: "⭐3.9 | 20.3K+ reviews",
claim: "Globally acclaimed tech company since 1991.",
button: "View jobs",
filter: "IT Services(16)",
},
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/42932.gif",
company: "Genpact",
rating: "⭐4.0 | 19.3K+ reviews",
claim: "Global professional services firm.",
button: "View jobs",
filter: "Technology(3)",
},
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/4582763.gif",
company: "Biz2Credit",
rating: "⭐4.2 | 113 reviews",
claim: "Leading the #FinTech Revolution.",
button: "View jobs",
filter: "BFSI (4)",
},
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/384216.gif",
company: "Mouser Electronics",
rating: "⭐ 4.4 | 53 reviews",
claim: "Leading distributor of electronic products.",
button: "View jobs",
filter: "BPM(12)",
},
{
img_url: "https://static.naukimg.com/s/0/0/i/registerLock.png",
company: "HCL",
rating: "⭐3.9 | 20.3K+ reviews",
claim: "Globally acclaimed tech company since 1991.",
button: "View jobs",
filter: "IT Services(16)",
},
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/419316.gif",
company: "HCL",
rating: "⭐ 3.9 | 3.5K+ reviews",
claim: "Globally acclaimed tech company since 1991.",
button: "View jobs",
filter: "Technology(3)",
},
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/4614431.gif",
company: "Netcrackers",
rating: "⭐3.9 | 20.3K+",
claim: "Globally acclaimed tech company since 1991.",
button: "View jobs",
filter: "BFSI (4)",
},
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/2436002.gif",
company: "HCL",
rating: "⭐ 3.7 | 338 reviews",
claim: "Globel leader in Bss.",
button: "View jobs",
filter: "IT Services & consulting(16)",
},
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/2483944.gif",
company: "HCL",
rating: "⭐ 4.4 | 880 reviews",
claim: "Globally acclaimed tech company since 1991.",
button: "View jobs",
filter: "Financial Services(6)",
},
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/4264.gif",
company: "jobBoxes",
rating: "⭐ 4.0 | 1.5K+ reviews",
claim: "Management services company since 2003..",
button: "View jobs",
filter: "Internet(3)",
},
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/47784.gif",
company: "Mindtree",
rating: "⭐ 3.7 | 6.2K+ reviews",
claim: "Leading business process managment...",
button: "View jobs",
filter: "Analitycs / KPO ? Research (2)",
},
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/44512.gif",
company: "ICICI Bank",
rating: "⭐ 3.9 | 3.5K+ reviews",
claim: "Global IT Services & consulting company.",
button: "View jobs",
filter: "Indian MNC(4)",
},
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/9558.gif",
company: "Nagarro",
rating: "⭐ 4.5 | 32.5K+ reviews",
claim: "Leading private sector bank in India.",
button: "View jobs",
filter: "Foreign MNC(16)",
},
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/1186200.gif",
company: "Virtusa",
rating: "⭐ 4.9 | 1K+ reviews",
claim: "Cloud technology company since 1977.",
button: "View jobs",
filter: "Financial Services(6)",
},
{
img_url: "https://img.naukimg.com/logo_images/groups/v2/1288.gif",
company: "Capgemini",
rating: "⭐ 3.9 | 1.5K+ reviews",
claim: "IT services company since 1996.",
button: "View jobs",
filter: "Corporate(3)",
},
];
displayData(data);
document.querySelector("#ida").addEventListener("click", fun);
function fun() {
data.filter(function (ele) {
var a = data.filter(function (elem) {
return elem.filter == "IT Services(16)";
});
displayData(a);
});
}
document.querySelector("#idb").addEventListener("click", fun1);
function fun1() {
data.filter(function (ele) {
var a = data.filter(function (elem) {
return elem.filter == "BFSI (4)";
});
displayData(a);
});
}
document.querySelector("#idc").addEventListener("click", fun2);
function fun2() {
data.filter(function (ele) {
var a = data.filter(function (elem) {
return elem.filter == "Technology(3)";
});
displayData(a);
});
}
document.querySelector("#idd").addEventListener("click", fun3);
function fun3() {
data.filter(function (ele) {
var a = data.filter(function (elem) {
return elem.filter == "BPM(12)";
});
displayData(a);
});
}
document.querySelector("#id11").addEventListener("click", fun4);
function fun4() {
data.filter(function (ele) {
var a = data.filter(function (elem) {
return elem.filter == "IT Services & consulting(16)";
});
displayData(a);
});
}
document.querySelector("#id12").addEventListener("click", fun5);
function fun5() {
data.filter(function (ele) {
var a = data.filter(function (elem) {
return elem.filter == "Analitycs / KPO ? Research (2)";
});
displayData(a);
});
}
document.querySelector("#id13").addEventListener("click", fun6);
function fun6() {
data.filter(function (ele) {
var a = data.filter(function (elem) {
return elem.filter == "Internet(3)";
});
displayData(a);
});
}
document.querySelector("#id14").addEventListener("click", fun7);
function fun7() {
data.filter(function (ele) {
var a = data.filter(function (elem) {
return elem.filter == "Financial Services(6)";
});
displayData(a);
});
}
document.querySelector("#id15").addEventListener("click", fun8);
function fun8() {
data.filter(function (ele) {
var a = data.filter(function (elem) {
return elem.filter == "Telecom / ISP(6)";
});
displayData(a);
});
}
document.querySelector("#id20").addEventListener("click", fun11);
function fun11() {
data.filter(function (ele) {
var a = data.filter(function (elem) {
return elem.filter == "Banking(1)";
});
displayData(a);
});
}
document.querySelector("#id16").addEventListener("click", fun12);
function fun12() {
data.filter(function (ele) {
var a = data.filter(function (elem) {
return elem.filter == "Foreign MNC(16)";
});
displayData(a);
});
}
document.querySelector("#id17").addEventListener("click", fun13);
function fun13() {
data.filter(function (ele) {
var a = data.filter(function (elem) {
return elem.filter == "Indian MNC(4)";
});
displayData(a);
});
}
document.querySelector("#id18").addEventListener("click", fun14);
function fun14() {
data.filter(function (ele) {
var a = data.filter(function (elem) {
return elem.filter == "Corporate(3)";
});
displayData(a);
});
}
document.querySelector("#id33").addEventListener("click", fun15);
function fun15() {
data.filter(function (ele) {
var a = data.filter(function (elem) {
return elem.filter == "BPM(12)";
});
displayData(a);
});
}
function displayData(data) {
document.querySelector("#outer").innerHTML = "";
data.map(function (ele) {
var box = document.createElement("div");
var image = document.createElement("img");
image.src = ele.img_url;
var lilBox = document.createElement("div");
var companies = document.createElement("h4");
companies.innerText = ele.company;
// companies.style.backgroundColor = "blue"
// companies.setAttribute=("id","company")
var rate = document.createElement("p");
rate.innerText = ele.rating;
lilBox.append(companies, rate);
// lilBox.style.backgroundColor = "blue"
// lilBox.style.margin = "auto"
var c = document.createElement("p");
c.innerText = ele.claim;
// claim.setAttribute("id","claim")
var btn = document.createElement("button");
btn.textContent = ele.button;
box.append(image, lilBox, c, btn);
document.querySelector("#outer").append(box);
});
}
document.querySelector("#navEmploy").addEventListener("click", slectFun);
function slectFun() {
event.preventDefault();
let a = document.querySelector("#navEmploy").value;
// console.log(a)
if (a === "Employer Login") {
window.location.href = "employlogin.html";
} else {
return false;
}
}