Created
December 14, 2011 11:15
-
-
Save ha1t/1476177 to your computer and use it in GitHub Desktop.
2000年前後のWebサイトの8割に実装されていたであろうJavaScript
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 putTime() | |
{ | |
d=new Date(); | |
h=d.getHours(); | |
if(h<5){document.write("真夜中ですな。テレホ入ってますか?");} | |
else if(h<11){document.write("おっはよーございます。おげんきですか?");} | |
else if(h<15){document.write("お昼。ご飯食べた?");} | |
else if(h<16){document.write("3時。おやつちょうだいです。");} | |
else if(h<19){document.write("もう暗くなってきたね。");} | |
else{document.write("よる。ねむいなあ。(-.-)Zzz・・・(゚_゚)パチッ");} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment