Created
November 27, 2019 02:49
-
-
Save Jagathishrex/05ea52eabfe524fa22a20aa55bfa4d6f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
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
s/\b(delay|time)\b/delayMs/gm