Skip to content

Commit 872285a

Browse files
authored
fix(img): Modification des propriétés width et height (#20)
1 parent 5695bd1 commit 872285a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

assets/js/ecoindex-badge.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
const a = document.createElement("a");
77
const img = document.createElement("img");
88

9-
a.href = `${baseUrl}/redirect/?url=${url}`;
10-
a.target = "_blank";
11-
a.title = "Analyse ecoindex";
12-
img.src = `${baseUrl}/badge/?theme=${theme}&url=${url}`;
13-
img.alt = "Badge ecoindex";
14-
img.width = "108px";
15-
img.height = "32px";
9+
a.setAttribute("href", `${baseUrl}/redirect/?url=${url}`);
10+
a.setAttribute("target","_blank");
11+
a.setAttribute("title", "Analyse ecoindex");
12+
img.setAttribute("src", `${baseUrl}/badge/?theme=${theme}&url=${url}`);
13+
img.setAttribute("alt", "Badge ecoindex");
14+
img.setAttribute("width", "108px");
15+
img.setAttribute("height", "32px");
1616
a.appendChild(img);
1717
badge.appendChild(a);
1818
})();

0 commit comments

Comments
 (0)