Skip to content

Instantly share code, notes, and snippets.

@rocktronica
Created January 17, 2017 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rocktronica/65efc163d13a6efac02ea9cdc8eaf557 to your computer and use it in GitHub Desktop.
Save rocktronica/65efc163d13a6efac02ea9cdc8eaf557 to your computer and use it in GitHub Desktop.
var i = 16;
var sleep = 0;
while (i-- > 0) {
var iHex = i.toString(16);
var ii = 16;
while (ii-- > 0) {
(function() {
var iiHex = ii.toString(16);
var fullHex = iHex + iiHex + iHex + iiHex + iHex + iiHex;
var msg = function() {
TS.client.ui.onSubmit("#" + fullHex);
};
sleep++;
setTimeout(msg, sleep * 1000);
}());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment