Skip to content

Instantly share code, notes, and snippets.

@JWardee

JWardee/ainsley.exe.js

Last active Dec 24, 2017
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@JWardee JWardee commented May 18, 2016

ainsley

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