Skip to content

Instantly share code, notes, and snippets.

@apg
Forked from jgv/rapture.js
Created May 21, 2011 15:06
Show Gist options
  • Save apg/984588 to your computer and use it in GitHub Desktop.
Save apg/984588 to your computer and use it in GitHub Desktop.
Is it the rapture yet?
(function () {
// no point in having the function take only a day, or
// having a function at all for that matter...
var date = new Date();
if (date.getDate() === 21 &&
date.getMonth() === 4 &&
date.getFullYear() === 2011) {
document.write('its the rapture');
} else {
document.write('sry bro, not the rapture yet');
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment