Skip to content

Instantly share code, notes, and snippets.

@Jagathishrex
Created November 27, 2019 02:49
Show Gist options
  • Save Jagathishrex/05ea52eabfe524fa22a20aa55bfa4d6f to your computer and use it in GitHub Desktop.
Save Jagathishrex/05ea52eabfe524fa22a20aa55bfa4d6f to your computer and use it in GitHub Desktop.
console.delayLog = function(time, message) {
var style =
"color: rgb(249, 162, 34);" +
"font-size: 60px;" +
"font-weight: bold;" +
"text-shadow: 1px 1px 5px rgb(249, 162, 34);" +
"filter: dropshadow(color=rgb(249, 162, 34), offx=1, offy=1);";
setTimeout(function() {
console.log(message, style);
}, delay);
}
console.delayLog(1000, "%cDelayed Log")
@disco0
Copy link

disco0 commented Dec 15, 2020

s/\b(delay|time)\b/delayMs/gm

@5alidshammout
Copy link

at line 10 delay is undefined, you should use time just like:

https://gist.github.com/5alidshammout/1b99c556eb882c32ac337c396bd78146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment