Created
October 27, 2013 07:46
-
-
Save vool/7178915 to your computer and use it in GitHub Desktop.
A happy birthday message for Ben.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Ben Day ?</title> | |
</head> | |
<body> | |
<script> | |
var b = 4; | |
var who; | |
var tday = new Date(); | |
var bday = new Date("December 03, 1978") | |
if (bday.getMonth() == tday.getMonth() && bday.getDate() == tday.getDate()) { | |
for (var i = 0; i < b; i++) { | |
if (i == b - 2) { | |
who = "Benny"; | |
} else { | |
who = "you"; | |
} | |
alert("Happy Birthday to " + who); | |
} | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment