Skip to content

Commit 6790a35

Browse files
authored
✨ feat(js): Add link title and img alt to have better integration (#4)
1 parent 064acd7 commit 6790a35

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

assets/js/dark.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
a.href = `${baseUrl}/redirect/?url=${url}`;
99
a.target = "_blank";
10+
a.title = "Analyse ecoindex";
1011
img.src = `${baseUrl}/badge/?theme=dark&url=${url}`;
12+
img.alt = "Badge ecoindex";
1113
a.appendChild(img);
1214
badge.appendChild(a);
1315
})();

assets/js/light.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
a.href = `${baseUrl}/redirect/?url=${url}`;
99
a.target = "_blank";
10+
a.title = "Analyse ecoindex";
1011
img.src = `${baseUrl}/badge/?url=${url}`;
12+
img.alt = "Badge ecoindex";
1113
a.appendChild(img);
1214
badge.appendChild(a);
1315
})();

0 commit comments

Comments
 (0)