Skip to content

Instantly share code, notes, and snippets.

@JWardee
Last active December 24, 2017 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JWardee/d886081fd09d1cda9792f66d3989b9e6 to your computer and use it in GitHub Desktop.
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
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);
}
};
@JWardee
Copy link
Author

JWardee commented May 18, 2016

ainsley

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment