>Info zum Stichwort Java | >diskutieren | >Permalink 
elfboi schrieb am 9.12. 2002 um 22:34:32 Uhr über

Java

<SCRIPT language=»JavaScript«>


<!--


// This JavaScript takes today's conventional (Gregorian) date from the client


// system and displays the corresponding date from the Discordian Calendar as


// given on Page 0034 of Principia Discordia. Coded by JohnDouglas WaySide, KSC,


// of the JAH Cabal on 14-15 Aftermath, AM 3163. Revised 48 Aftermath, AM 3163.


// Permission granted to all Discordians and their ilk to use freely in


// propagating the Faith. Hail Eris!





// Note that the »Julian date« generated for dates after the last day of February


// in a leap year will be »short« by a day -- and won't be generated at all for


// February 29th itself (St. Tibb's Day in the Discordian calendar).





// Copyfree <X>1997-98 non sequitur productions / ErisX Web Design Collective.


// http://erisx.com -- »The Web HER Way«





// Mama made me do it. Honest.























function showDiscordianDate() {








var julian, i, disDate, disDay, disMonth, disYear;





currentDate = new Date();


var today = currentDate.getDate();


var currentMonth = currentDate.getMonth();


var currentYear = currentDate.getYear();











var extraDays = new Array(0,3,0,3,2,3,2,3,3,2,3,2);


var dDays = new Array(»Sweetmorn«,»Boomtime«,»Pungenday«,»Prickle-Prickle«,»Setting Orange«);


var dMonths = new Array(»Chaos«,»Discord«,»Confusion«,»Bureaucracy«,»Aftermath«);





document.writeln(»<DIV ALIGN='center'><STRONG>Today\'s Day and Date in the Discordian Calendar:</STRONG></DIV>«);


document.writeln(»<BR> «);





if((currentMonth==1)&&(today==29)) {


document.writeln(»<DIV ALIGN='center'> Today is St. Tibb\'s Day -- Many Happy Returns!</DIV>«);


}


else {


julian = currentMonth * 28;


for(i=0; i<=currentMonth; i++) {


julian+= extraDays[i];


}


julian+= today;





disDay = (julian - 1) % 5;


disDate = julian % 73;


disMonth = Math.floor(julian/73);


disYear = currentYear+3066;





document.writeln(»<DIV ALIGN='center'><BIG>«+dDays[disDay]+», Day «+disDate


+» of the Season of «+dMonths[disMonth]+», Anno Mung «+disYear+».</BIG></DIV>«);


}





}














// -->


   User-Bewertung: +1
Was ist das Gegenteil von »Java«? Erkläre wie es funktioniert.

Dein Name:
Deine Assoziationen zu »Java«:
Hier nichts eingeben, sonst wird der Text nicht gespeichert:
Hier das stehen lassen, sonst wird der Text nicht gespeichert:
 Konfiguration | Web-Blaster | Statistik | »Java« | Hilfe | Startseite 
0.0110 (0.0068, 0.0028) sek. –– 853811205