-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnaukri.js
44 lines (42 loc) · 1.17 KB
/
naukri.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
var data = [
{
img_url: "https://img.naukimg.com/logo_images/v2/892542.gif",
company: "TCS",
},
{
img_url: "https://img.naukimg.com/logo_images/v2/1384.gif",
company: "Wipro",
},
{
img_url: "https://img.naukimg.com/logo_images/v2/10081.gif",
company: "ICICI Bank",
},
{
img_url: "https://img.naukimg.com/fc_images/v2/16987.gif",
company: "IBM",
},
{
img_url: "https://img.naukimg.com/logo_images/v2/11014.gif",
company: "intel",
},
];
data.map(function (elem) {
var div = document.createElement("div");
var company = document.createElement("p");
company.innerText = elem.company;
var img = document.createElement("img");
img.src = elem.img_url;
div.append(img, company);
document.getElementById("company").append(div);
});
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;
}
}