/*
NemuList AutomaticCreating Program Ver1.0
*/
BaseAdd="http://www.bc.wakwak.com/~cosa/";
OffLineBaseAdd='C:/www/tukimi/public_html/hello/';
DiaryNumber=2;
DiaryFolder="diary";
NowDiaryFile="diary.html";
HtmlFileExtension=".html";
MainSubstance='
';
MainListTag='
';
MainListSelectedTag='- ';
ChildrenListTag='
';
ChildrenListSelectedTag='- ';
GrandchildListTag='
';
GrandchildListSelectedTag='- ';
NemuNumber=9;
Nemu=new Array(NemuNumber);
Nemu[0]=new Array( 'home.html',
'HOME',
'TOPに戻ります',
'Not'
);
Nemu[1]=new Array( 'profile.html',
'PROFILE',
'僕のちょっとした自己紹介です',
'ChildrenList','Yes',
'名前=name,性別=sex,年齢=age',
'aa/name.html,#sex,#old'
);
Nemu[2]=new Array( 'diary.html',
'DIARY',
'毎日つけています(はきっリいってつまらないです((((((^_^;)',
'Diary'
);
Nemu[3]=new Array( 'http://127.0.0.1/~tukimi/hello2/bbs.html',
'SCRIBBL BBS',
'何でも書き込んで!',
'Not'
);
Nemu[4]=new Array( 'cgi-bin/oekaki/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ユーザーのみ)',
'Not'
);
Nemu[6]=new Array( 'whats_new.html',
'What’s New',
'このページの更新記録です',
'GrandchildList','3',
'No/No,1999年,other/whats_new/whats_new99.html',
'1月;2月;3月;4月;5月,aa/name.html;#2;#3;#4;#5',
'Yes/No,2000年=2000年の更新記録,other/whats_new/whats_new00.html',
'6月;7月;8月;9月;10月;11月,#6;#7;#8;#9;#10;#11',
'No/Yes,2001年,whats_new.html',
'0月=0月の更新;2月=2月の更新,#0;#2'
);
Nemu[7]=new Array( 'link/link01.html',
'LINK',
'リンク集です',
'Not'
);
Nemu[8]=new Array( 'mailto:tsukimi@to-sen.net',
'MAIL',
'管理人(月見)にメールが送れます',
'Not'
);
NemuAdd=window.location.pathname;
SecondLetter=NowDiaryFile.slice(0,2);
if(window.navigator.onLine)
{
M=0;
NemuName=NemuAdd.split("/");
}else{
M=-1;
BaseAdd="file:///"+OffLineBaseAdd;
NemuName=NemuAdd.split("\\");
};
BaseDiaryAdd=BaseAdd+DiaryFolder+'/';
BaseAddBlame=BaseAdd;
BaseAddBlame2=BaseAdd;
BaseDiaryAddBlame=BaseDiaryAdd;
for(A=M;BaseAddBlame2.indexOf("/") != -1;A++)
{
BaseAddBlame2=BaseAddBlame2.replace("/","?");
};
for(B=M+1;BaseDiaryAddBlame.indexOf("/") != -1;B++)
{
BaseDiaryAddBlame=BaseDiaryAddBlame.replace("/","?");
};
MonthDepth=A;
NowMonthDepth=A-(B-A);
for(A in Nemu)
{
switch(Nemu[A][3])
{
case "ChildrenList":
Nemu[A][5]=Nemu[A][5].split(",");
Nemu[A][6]=Nemu[A][6].split(",");
if(Nemu[A][4] == "Yes")
{
for(B in Nemu[A][5])
{
Nemu[A][5][B]=Nemu[A][5][B].split("=");
};
};
break;
case "Cgi":
Nemu[A][4]=Nemu[A][4].split(",");
Nemu[A][4][0]=Nemu[A][4][0].replace("&","&");
Nemu[A][4][1]=Nemu[A][4][1].replace("&","&");
break;
case "GrandchildList":
Count=1;
for(B=1;Count<=Nemu[A][4];B+=2)
{
Nemu[A][(4+B)]=Nemu[A][(4+B)].split(",");
Nemu[A][(4+B)][0]=Nemu[A][(4+B)][0].split("/");
Nemu[A][(4+B)][1]=Nemu[A][(4+B)][1].split("=");
Nemu[A][(4+B+1)]=Nemu[A][(4+B+1)].split(",");
Nemu[A][(4+B+1)][0]=Nemu[A][(4+B+1)][0].split(";");
Nemu[A][(4+B+1)][1]=Nemu[A][(4+B+1)][1].split(";");
for(C in Nemu[A][(4+B+1)][0])
{
Nemu[A][(4+B+1)][0][C]=Nemu[A][(4+B+1)][0][C].split("=");
};
Count++;
};
break;
};
};
document.write(MainSubstance);
document.write(MainListTag);
MainLoop:
for(A in Nemu)
{
BaseAdd=BaseAddBlame;
TitleTag="";
ReferenceAdd=Nemu[A][0].indexOf("http://");
ReferenceMail=Nemu[A][0].indexOf("mailto:");
if(ReferenceAdd == -1)
{
FullAdd=BaseAdd+Nemu[A][0];
}else{
FullAdd=Nemu[A][0];
};
switch(Nemu[A][3])
{
case "Cgi":
ReferenceCgi=String(location).indexOf(Nemu[A][4][1]);
if(FullAdd == location || ReferenceCgi != -1)
{
MainListSelected();
if(CgiPageMax >= 1)
{
ListCgi();
};
continue MainLoop;
};
break;
case "ChildrenList":
for(B in Nemu[A][6])
{
ChildrenListAdd =FullAdd+Nemu[A][6][B];
ChildrenListAdd2=BaseAdd+Nemu[A][6][B];
if(FullAdd == location || ChildrenListAdd == location || ChildrenListAdd2 == location)
{
MainListSelected();
ChildrenList();
continue MainLoop;
};
};
break;
case "GrandchildList":
Count =1;
Loop1:
for(B=1;Count<=Nemu[A][4];B+=2)
{
GrandchildAdd=BaseAdd+Nemu[A][(4+B)][2];
for(C in Nemu[A][(4+B)+1][1])
{
GrandchildAdd2=GrandchildAdd+Nemu[A][(4+B)+1][1][C];
GrandchildAdd3=BaseAdd+Nemu[A][(4+B)+1][1][C];
if(GrandchildAdd == location || GrandchildAdd2 == location || GrandchildAdd3 == location)
{
MainListSelected();
GrandchildList();
continue MainLoop;
continue Loop1;
};
};
Count++;
};
break;
case "Diary":
if(NemuName[NowMonthDepth] == DiaryFolder || NemuName[NowMonthDepth] == NowDiaryFile)
{
MainListSelected();
DiaryList();
continue MainLoop;
};
break;
case "Not":
if(FullAdd == location)
{
MainListSelected();
continue MainLoop;
};
break;
};
if(ReferenceAdd == 0 || ReferenceMail == 0)
{
BaseAdd="";
}else{
BaseAdd=BaseAddBlame;
};
document.write('
- '+Nemu[A][1]+'
');
};
document.write('
');
document.write('
');
document.write('')
function MainListSelected()
{
document.write(MainListSelectedTag+Nemu[A][1]+'');
};
function GrandchildList()
{
document.write(ChildrenListTag);
Count=1;
Loop:
for(D=1;Count<=Nemu[A][4];D+=2)
{
GrandchildAdd=BaseAdd+Nemu[A][(4+D)][2];
if(Nemu[A][(4+D)][0][0] == "Yes")
{
TitleTag=' title="'+Nemu[A][(4+D)][1][1]+'"';
ChildName=Nemu[A][(4+D)][1][0];
}else{
TitleTag='';
ChildName=Nemu[A][(4+D)][1];
};
for(E in Nemu[A][(4+D+1)][1])
{
GrandchildAdd2=BaseAdd+Nemu[A][(4+D)][2]+Nemu[A][(4+D)+1][1][E];
GrandchildAdd3=BaseAdd+Nemu[A][(4+D)+1][1][E];
if(GrandchildAdd == location || GrandchildAdd2 == location || GrandchildAdd3 == location)
{
document.write(ChildrenListSelectedTag+ChildName+'');
document.write(GrandchildListTag);
for(F in Nemu[A][(4+D+1)][0])
{
if(Nemu[A][(4+D)][0][1] == "Yes")
{
TitleTag=' title="'+Nemu[A][(4+D+1)][0][F][1]+'"';
GrandchildName=Nemu[A][(4+D+1)][0][F][0];
}else{
TitleTag='';
GrandchildName=Nemu[A][(4+D+1)][0][F];
};
if(BaseAdd+Nemu[A][(4+D)+1][1][F] == location)
{
document.write(GrandchildListSelectedTag+GrandchildName+'');
continue;
};
if(Nemu[A][(4+D)+1][1][F].indexOf('#') == -1)
{
document.write(''+GrandchildName+'');
}else{
document.write(''+GrandchildName+'');
};
};
document.write('');
Count++;
continue Loop;
};
};
document.write(''+ChildName+'');
Count++;
};
document.write('');
};
function ListCgi()
{
document.write(ChildrenListTag);
for(B=1;B');
continue;
};
if(B == CgiPageMax){break;};
document.write('Page'+B+'');
};
document.write('');
};
function ChildrenList()
{
document.write(ChildrenListTag);
for(C in Nemu[A][5])
{
if(BaseAdd+Nemu[A][6][C] == location)
{
document.write(ChildrenListSelectedTag+Nemu[A][5][C][0]+'');
continue;
};
if(Nemu[A][4] == "Yes")
{
TitleTag=' title="'+Nemu[A][5][C][1]+'"';
};
if(Nemu[A][6][C].indexOf('#') == -1)
{
document.write(''+Nemu[A][5][C][0]+'');
}else{
document.write(''+Nemu[A][5][C][0]+'');
};
};
document.write('');
};