Skip to content

Instantly share code, notes, and snippets.

@erkiesken
Created August 10, 2018 09:42
Show Gist options
  • Save erkiesken/d86b6f4fccaec7571799525ae1156c2f to your computer and use it in GitHub Desktop.
Save erkiesken/d86b6f4fccaec7571799525ae1156c2f to your computer and use it in GitHub Desktop.
ascii loader
a = ["Ooo","oOo","ooO","oOo"]; // like on the server listing screen of Minecraft
i = 0;
change = () => { document.querySelector("code").innerText = a[i % a.length]; i++; }
v = setInterval(change, 200)
// clearInterval(v);
// a = ["⦿⨀⨀⨀⨀","⨀⦿⨀⨀⨀","⨀⨀⦿⨀⨀","⨀⨀⨀⦿⨀","⨀⨀⨀⨀⦿","⨀⨀⨀⦿⨀","⨀⨀⦿⨀⨀","⨀⦿⨀⨀⨀"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment