diff --git a/index.html b/index.html index f4c0597..7fc23ef 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,9 @@ + frog_emojis + + @@ -92,12 +95,16 @@ } function mapFrogToImage(frogs, idstr) { let folderfroglink = frogs.map(frog => { + let linkimage = document.createElement("a"); + linkimage.href = `https://github.com/Riesi/frog_emojis/blob/master/${frog.path}`; + linkimage.target="_blank"; let link = `https://raw.githubusercontent.com/Riesi/frog_emojis/master/${frog.path}` let image = document.createElement("img"); image.src = link; image.title = frog.path.replaceAll("/","").replace(idstr,"").replace(".svg","").replaceAll("svg",""); image.style = "width:64px;margin:6px;" - document.querySelector("#" + idstr).appendChild(image); + linkimage.appendChild(image); + document.querySelector("#" + idstr).appendChild(linkimage); }); document.querySelector("#mainholder").appendChild(document.createElement("br"));