-
Notifications
You must be signed in to change notification settings - Fork 0
/
javascript.js
40 lines (31 loc) · 954 Bytes
/
javascript.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
var contactMeBtn = document.getElementById("contactMeBtn");
contactMeBtn.addEventListener(
"click",
() => {
window.location.href = "mailto:chinthakaprasad30@gmail.com";
},
"_blank"
);
let viewCvBtn = document.getElementById("viewCv");
viewCvBtn.addEventListener("click", () => {
const pdfUrl = "src/js.png";
window.open(pdfUrl, "_blank");
});
document.getElementById("email").onclick = () => {
window.open("mailto:chinthakaprasad30@gmail.com", "_blank");
};
document.getElementById("gitHub").onclick = () => {
window.open("https://github.com/ChinthakaPrasad?tab=repositories", "_blank");
};
document.getElementById("stackOverFlow").onclick = () => {
window.open(
"https://stackoverflow.com/users/22200258/chinthaka-prasad-wijerathna",
"_blank"
);
};
document.getElementById("linkdin").onclick = () => {
window.open(
"https://www.linkedin.com/in/chinthaka-prasad-wijerathna-85b354167/",
"_blank"
);
};