Skip to content

Instantly share code, notes, and snippets.

@karlbeecken
Last active October 24, 2020 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save karlbeecken/1893c3c5b8e8ec8a6c92602d5c3be720 to your computer and use it in GitHub Desktop.
Save karlbeecken/1893c3c5b8e8ec8a6c92602d5c3be720 to your computer and use it in GitHub Desktop.
<span id="unwelt_smiley"> </span> <!-- put wherever you want -->
<script>
function random_smiley()
{
let set = ["πŸ’š","🐣","🌱","🌿","🌳","🌻","🌞","β˜€","πŸ₯¦","🌏","🌍","🌈"]
let smiley = set[Math.floor(Math.random()*set.length)];
document.getElementById("unwelt_smiley").innerHTML = smiley;
}
random_smiley();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment