Last active
December 27, 2015 02:09
-
-
Save stankud/7249815 to your computer and use it in GitHub Desktop.
Change page to a picture after 5 seconds if it's Halloween
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
docucument.onload = function)() { | |
var seconds = 5 | |
var today = new Date() | |
if (today.getMonth() == 9 && today.getDate() == 31){ | |
setInterval(function(){ | |
body = getElementsByTagName('body'); | |
body[0].innerHTML = '<img src="http://i.imgur.com/iPOS6.gif">'; | |
}, (seconds*1000)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment