Skip to content

Instantly share code, notes, and snippets.

@fitorec
Created June 5, 2018 21:35
Show Gist options
  • Select an option

  • Save fitorec/886d43c2dd25028bcc5cfa034329d5c4 to your computer and use it in GitHub Desktop.

Select an option

Save fitorec/886d43c2dd25028bcc5cfa034329d5c4 to your computer and use it in GitHub Desktop.
Escribe en la consola del navegador un banner
/**
* Escribe en la consola un banner
**/
window.onload = function () {
var i = "background-image: url('https://mundosica.com/wp-content/uploads/2015/10/logo-mundo-sica.png');background-repeat:no-repeat;display:block;background-size:150px 105px;padding-top:105px;padding-left:0;height:105px;width:160px;margin-top:0;margin-left:0;"
, a = "font-family: Helvetica, Arial, sans-serif;"
, s = a + "; font-size: 32px; line-height: 1.5; color: #F43B00;"
, l = a + "; font-size: 14px; line-height: 1.15rem; color: #F43B00"
, d = l + "; text-decoration: underline;"
, f = ""
, text = " \n"
+ "%cSí, somos los desarrolladores de.\n%chttps://mundosica.com/%c"
+ "\n Si deseas un sistema chingón favor de contactarnos.\n";
if (navigator.userAgent.match(/chrome/i)) {
window.console.log('\n\n\n\n%c' + text, i, l, d, l);
}
else {
window.console.log('%cMundosica.com' + text, s, l, d, l);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment