Created
February 22, 2014 14:33
-
-
Save BinRoot/9155718 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <html> | |
| <body> | |
| <script> | |
| var d = new Date() | |
| var date = d.getDate() | |
| if ( date > 20 ) { | |
| alert("the month is almost over") | |
| } | |
| else if ( date > 10 ) { | |
| alert("we're in the middle of the month") | |
| } | |
| else { | |
| alert("the month just started") | |
| } | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment