Skip to content

Commit

Permalink
fix(img): Modification des propriétés width et height (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
doydoy44 authored May 5, 2023
1 parent 5695bd1 commit 872285a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions assets/js/ecoindex-badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
const a = document.createElement("a");
const img = document.createElement("img");

a.href = `${baseUrl}/redirect/?url=${url}`;
a.target = "_blank";
a.title = "Analyse ecoindex";
img.src = `${baseUrl}/badge/?theme=${theme}&url=${url}`;
img.alt = "Badge ecoindex";
img.width = "108px";
img.height = "32px";
a.setAttribute("href", `${baseUrl}/redirect/?url=${url}`);
a.setAttribute("target","_blank");
a.setAttribute("title", "Analyse ecoindex");
img.setAttribute("src", `${baseUrl}/badge/?theme=${theme}&url=${url}`);
img.setAttribute("alt", "Badge ecoindex");
img.setAttribute("width", "108px");
img.setAttribute("height", "32px");
a.appendChild(img);
badge.appendChild(a);
})();

0 comments on commit 872285a

Please sign in to comment.