Last active
December 24, 2017 21:04
-
-
Save JWardee/d886081fd09d1cda9792f66d3989b9e6 to your computer and use it in GitHub Desktop.
A little easter egg that quickly shows a little someone - do "ainsley.exe()" in the console to see
This file contains 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
var ainsley = { | |
exe: function() { | |
var egg = document.createElement('img'); | |
egg.src = 'http://i0.kym-cdn.com/photos/images/facebook/000/114/193/1298574546091.jpg'; | |
egg.setAttribute('style', 'position: fixed; top: 50%; left: 50%; z-index: 999999; transform: translate(-50%, -50%);'); | |
document.body.appendChild(egg); | |
setTimeout(function() { | |
document.body.removeChild(egg); | |
}, 500); | |
} | |
}; |
Author
JWardee
commented
May 18, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment