/*
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='
';
MainListSelected='- ';
ChildrenList='
';
ChildrenListSelected='- ';
GrandchildList='
';
GrandchildListSelected='- ';
NemuNumber=9;
Nemu=new Array(NemuNumber);
Nemu[0]=new Array( 'home.html',
'HOME',
'TOPに戻ります',
'No'
);
Nemu[1]=new Array( 'profile.html',
'PROFILE',
'僕のちょっとした自己紹介です',
'Yes',
'名前,性別,年齢',
'#name,#sex,#old'
);
Nemu[2]=new Array( 'diary.html',
'DIARY',
'毎日つけています(はきっリいってつまらないです((((((^_^;)',
'DiaryList()'
);
Nemu[3]=new Array( 'http://127.0.0.1/~tukimi/hello2/bbs.html',
'SCRIBBL BBS',
'何でも書き込んで!',
'No'
);
Nemu[4]=new Array( 'cgi/oekakibbs/oekaki.cgi',
'GRFFITO PIAZZA',
'お絵かき掲示板です。お好きな絵を描いて下さいませ',
'Cgi',
'oekaki.cgi?mode=pageview&page=,?mode=pageview&page='
);
Nemu[5]=new Array( 'http://www.hello.co.jp/php/log.phtml?user=ohtsuki',
'VISITOR',
'このページに来てくれた人です(Helloユーザーのみ)',
'No'
);
Nemu[6]=new Array( 'whats_new.html',
'What’s New',
'このページの更新記録です',
'GrandchildList','2',
'No/Yes,2000年,other/whats_new/whats_new00.html',
'1月;2月;3月;4月;5月,#1;#2;#3;#4;#5',
'Yes/No,2001年:2001年度,whats_new.html',
'6月;7月;8月;9月;10月;11月,#6;#7;#8;#9;#10;#11'
);
Nemu[7]=new Array( 'link/link01.html',
'LINK',
'リンク集です',
'No'
);
Nemu[8]=new Array( 'mailto:tsukimi@to-sen.net',
'MAIL',
'管理人(月見)にメールが送れます',
'No'
);
BaseAddBlame=BaseAdd;
NemuAdd=window.location.pathname;
NemuName=NemuAdd.split("/");
SecondLetter=NowDiaryFile.slice(0,2);
Depth=Depth+3;
NowMonthDepth=NowMonthDepth+3;
MonthDepth=MonthDepth+3;
for(B in Nemu)
{
Nemu[B][10]=Nemu[B][0];
switch(Nemu[B][3])
{
case "Yes":
Nemu[B][4]=Nemu[B][4].split(",");
Nemu[B][5]=Nemu[B][5].split(",");
break;
case "Cgi":
Nemu[B][4]=Nemu[B][4].split(",");
Nemu[B][4][0]=Nemu[B][4][0].replace("&","&");
Nemu[B][4][1]=Nemu[B][4][1].replace("&","&");
break;
case "GrandchildList":
Count=1;
for(F=1;Count<=Nemu[B][4];F+=2)
{
Nemu[B][(4+F)]=Nemu[B][(4+F)].split(",");
Nemu[B][(4+F)][0]=Nemu[B][(4+F)][0].split("/");
Nemu[B][(4+F)][1]=Nemu[B][(4+F)][1].split(",");
Nemu[B][(4+F+1)]=Nemu[B][(4+F+1)].split(",");
Nemu[B][(4+F+1)][0]=Nemu[B][(4+F+1)][0].split(";");
Nemu[B][(4+F+1)][1]=Nemu[B][(4+F+1)][1].split(";");
Count++;
};
break;
};
};
document.write(Nemu[6][8][0][0]);
document.write(MainSubstance);
document.write(MainList);
for(D=0;D');
DiaryList();
D++;
};
ReferenceAdd=Nemu[D][10].indexOf("http://");
ReferenceMail=Nemu[D][10].indexOf("mailto:");
if(ReferenceAdd == 0 || ReferenceMail == 0)
{
BaseAdd="";
}else{
BaseAdd=BaseAddBlame;
};
if(D == NemuNumber){break;};
if(Nemu[D][2] != "")
{
document.write('
- '+Nemu[D][1]+'
');
}else{
document.write('- '+Nemu[D][1]+'
');
};
};
document.write('
');
document.write('
');
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('');
};