Skip to content

Instantly share code, notes, and snippets.

@jgv
Created May 20, 2011 20:47
Show Gist options
  • Select an option

  • Save jgv/983764 to your computer and use it in GitHub Desktop.

Select an option

Save jgv/983764 to your computer and use it in GitHub Desktop.
Is it the rapture yet?
(function () {
date = new Date();
day = date.getDate();
month = date.getMonth();
year = date.getFullYear();
checkForRapture(day);
function checkForRapture(day) {
if (day === 21 &&
month === 4 &&
year === 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