Skip to content

Instantly share code, notes, and snippets.

@gulhe
Last active February 5, 2021 10:59
Show Gist options
  • Save gulhe/2adae5221c57ef8629213f0f6e3c8c58 to your computer and use it in GitHub Desktop.
Save gulhe/2adae5221c57ef8629213f0f6e3c8c58 to your computer and use it in GitHub Desktop.
Emoji roller
const globes = ["🌍", "🌏", "🌎"];
const moons =["πŸŒ•",
"πŸŒ–",
"πŸŒ—",
"🌘",
"πŸŒ‘",
"πŸŒ’",
"πŸŒ“",
"πŸŒ”"];
const plainClocks = ["πŸ•›",
"πŸ•",
"πŸ•‘",
"πŸ•’",
"πŸ•“",
"πŸ•”",
"πŸ••",
"πŸ•–",
"πŸ•—",
"πŸ•˜",
"πŸ•™",
"πŸ•š"];
const clocks = ["πŸ•›","πŸ•§",
"πŸ•","πŸ•œ",
"πŸ•‘","πŸ•",
"πŸ•’","πŸ•ž",
"πŸ•“","πŸ•Ÿ",
"πŸ•”","πŸ• ",
"πŸ••","πŸ•‘",
"πŸ•–","πŸ•’",
"πŸ•—","πŸ•£",
"πŸ•˜","πŸ•€",
"πŸ•™","πŸ•₯",
"πŸ•š","πŸ•¦"];
const universalLove = ["❀️", "🧑", "πŸ’›", "πŸ’š", "πŸ’™", "πŸ’œ"];
const cardinals = [
"➑️",
"↗️",
"⬆️",
"↖️",
"⬅️",
"↙️",
"⬇️",
"β†˜οΈ"];
function roll(array){
array.rollIndex=(array.rollIndex||0)%array.length;
return array[array.rollIndex++];
}
setInterval(_=> document.body.innerHTML=roll(moons), 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment