Last active
December 25, 2015 03:29
-
-
Save jayzalowitz/6910569 to your computer and use it in GitHub Desktop.
Quite possibly my only real contribution to the world's happiness...
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
function humpday(){ | |
if ((!$_COOKIE['cameled']) && (strftime("%A",time()) == "Wednesday")){ | |
return ' | |
<script type="text/javascript"> | |
var date = new Date(); | |
date.setTime(date.getTime() + (600000)); | |
var expires = "; expires=" + date.toGMTString(); | |
document.cookie = "cameled=yes" + expires + "; path=/"; | |
</script> | |
<iframe width="560" height="315" src="//www.youtube.com/embed/Vs5QJi-dX-4?autoplay=1" frameborder="0" allowfullscreen></iframe>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment