-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.js
More file actions
27 lines (25 loc) · 709 Bytes
/
contact.js
File metadata and controls
27 lines (25 loc) · 709 Bytes
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
const container = document.querySelector(".contactContainer");
const data = [
{
link: "https://www.facebook.com/profile.php?id=100072437530178"
},
{
link: "https://www.linkedin.com/in/kyaw-zin-thant-303342202/"
},
{
link: "https://twitter.com/KyawVer"
},
{
link: "https://github.com/kyawzinthant22"
}
];
data.forEach((item, index) => {
const anchor = document.createElement('a');
anchor.href = item.link;
const image = document.createElement('img');
image.src = `./assets/social/${index + 1}.png`;
image.width = 50;
image.alt = "Social Media Icon";
anchor.appendChild(image);
container.appendChild(anchor);
});