/* NemuList AutomaticCreating Program Ver1.0 */ //BaseAdd="http://www.bc.wakwak.com/~cosa/"; BaseAdd="http://127.0.0.1/~tukimi/hello2/"; Depth=0; DiaryNumber=2; StartYear =1999; StartMonth=10; MonthDepth=2; NowMonthDepth=0; DiaryFolder="diary"; NowDiaryFile="diary.html"; HtmlFileExtension=".html"; MainSubstance='
'; MainList='
'); function MainListSelectedWrite() { document.write(MainListSelected+Nemu[D][1]+''); switch(Nemu[B][3]) { case "Yes": ListBottom(); break; case "GrandchildList": GrandchildList(); break; }; if(Nemu[D][3] == "Cgi" && CgiPageMax >= 1) { ListCgi(); }; D++; }; function GrandchildList() { }; function ListCgi() { document.write(ChildrenList); for(F=1;F'); F++; }; if(F == CgiPageMax){break;}; document.write('
  • Page'+F+'
  • '); }; document.write(''); }; function ListBottom() { document.write(ChildrenList); for(E1 in Nemu[D][4]) { document.write(ChildrenListSelected+''+Nemu[D][4][E1]+''); }; document.write(''); }; function DiaryList() { BaseDiaryAdd=BaseAdd+DiaryFolder+'/'; DiaryAdd=window.location.pathname; DiaryName=DiaryAdd.split('/'); YY=new Date().getFullYear(); MM=new Date().getMonth()+1; RemainYear=YY-StartYear; if(StartMonth<10){StartMonth="0"+StartMonth;}; B1=0; C1=0; if(DiaryName[NowMonthDepth] != NowDiaryFile) { Depth=MonthDepth; }else{ Depth=NowMonthDepth; }; NowPageMonth=DiaryName[Depth].substring(0,2); NowPageYear =DiaryName[Depth-1]; if(NowPageYear == YY || NowPageMonth == SecondLetter) { WriteNowYear(); }else if(NowPageYear == StartYear) { WriteStartYear(); }else{ WriteYear(); }; function WriteNowYear() { document.write(ChildrenList); for(D1=0;D1'+(StartYear+D1)+'年') }else{ document.write('
  • '+(StartYear+D1)+'年
  • ');}; }; document.write(ChildrenListSelected+YY+'年'); document.write(GrandchildList); for(A1=1;A1<=MM;A1++) { ListStream(); if(NowPageMonth == SecondLetter && A1 == MM) { document.write(GrandchildListSelected+B1+'月'); break; }; if(B1 == MM){C1="../../"+DiaryFolder;}; if(C1 < 10){C1="0"+C1;}; document.write('
  • '+B1+'月
  • '); }; document.write(''); }; function WriteYear() { NowPageOldYear=NowPageYear-StartYear; NowPageNewYear=YY-NowPageYear; document.write(ChildrenList); for(D1=0;D1'+(StartYear+D1)+'年')} else{ document.write('
  • '+(StartYear+D1)+'年
  • ');}; }; document.write(ChildrenListSelected+NowPageYear+'年'); document.write(GrandchildList); for(A1=1;A1<=12;A1++) { ListStream(); if(A1 == 13){break;}; if(C1 < 10){C1="0"+C1;}; document.write('
  • '+B1+'月
  • '); }; document.write(''); for(D1=1;D1<=NowPageNewYear;D1++) { document.write('
  • '+(Number(NowPageYear)+D1)+'年
  • '); }; }; function WriteStartYear() { document.write(ChildrenList); document.write(ChildrenListSelected+NowPageYear+'年'); document.write(GrandchildList); B1=StartMonth-1; C1=StartMonth-1; for(A1=StartMonth;A1<=12;A1++) { ListStream(); if(A1 == 13){break;}; if(C1 < 10){C1="0"+C1;}; document.write('
  • '+B1+'月
  • '); }; document.write(''); for(D1=1;D1<=RemainYear;D1++) { document.write('
  • '+(StartYear+D1)+'年
  • ') }; }; function ListStream() { B1++; C1++; if(NowPageMonth == A1) { document.write(GrandchildListSelected+B1+'月'); A1++; B1++; C1++; }; }; document.write(''); };