Custom console log

by Daehyun Im

HTML

<h1>
Please open your developer tool.
</h1>

JavaScript

// How to hide source of Log messages in Console?
// http://stackoverflow.com/questions/34762774/how-to-hide-source-of-log-messages-in-console 

// Colors in JavaScript console
// http://stackoverflow.com/questions/7505623/colors-in-javascript-console

// why %c?
// https://github.com/DeveloperToolsWG/console-object/blob/master/api.md#format-specifiers
// %c	Formats the output string according to CSS styles you provide

  setTimeout(console.log.bind(console, "%c", "background: #3F51B5;color:#FFF;padding:5px;border-radius: 5px;padding:10rem;line-height: 100px;"));