Created
August 9, 2013 11:00
-
-
Save niraj-shah/6192809 to your computer and use it in GitHub Desktop.
Display colourful log messages in the Chrome JavaScript Console
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
if (typeof console == "object") { | |
if ( navigator.userAgent.indexOf('Chrome') != -1 ) { | |
console.log("%cHey! What are you looking under here for? https://www.webniraj.com/", "color: #0677c8; font-size: 18px; font-family: 'Helvetica-Neue', Helvetica, Arial, sans-serif;"); | |
} else { | |
console.log("Hey! What are you looking under here for? https://www.webniraj.com/"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment