From c8792ab9e723eed7223d138e889bea35b48bae34 Mon Sep 17 00:00:00 2001 From: Stefan Riesenberger Date: Wed, 18 May 2022 12:17:35 +0200 Subject: [PATCH] update website --- index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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"));