エクラの新着日記 1.0.2

[diary:174001]
[beforeExec]

subHeaderDisp = function(str){
var t0 = str.match(/\x3ctitle>(.+?)\x3c\/title/) ? RegExp.$1 : "";
t0 = t0.replace(/at eclat cyber city/, "");
var t1 = str.match(/id="site_info">(.*?)\x3c\/div/) ? RegExp.$1 : "";
if(t1 == "") t1 = "...";
echo("headerDisp", "\x3cdiv class='t0'>\x3cspan>" + t0 + "\x3c/span>\x3c/div>\x3cdiv class='t1'>" + t1 + "\x3c/div>"
);
};

Fx.s103 = function(s){
 var str = s.replace(/(href=")http:\/\/www\.eclat\.cc/g, "$1");
 str = str.replace(/(href=")(\/home\/[\w\-]+\/diary|\/cgi\-bin\/diary.cgi)([^"]*)/g, "$1main.html\?diary=172198\&uri=$2$3");

str = str.replace(/(\x3ca href=")\/home\/([\w\-]+)\/".*?>(.+?)(\x3c\/a>)/g,
'$1main.html?diary=172198\&user=$2">$3$4');
str = str.replace(/(href=")\/home\/([\w\-]+)i\/" target="_blank"/g, '$1main.html\?diary=172198\&user=$2"');

str = str.replace(/(href=")\/cgi-bin\/diary_form.+?id=(\d+")/g, "$1main.html\?diary=172231\&page=$2");
str = str.replace(/(href=")\/cgi-bin\/diary_editor.+?id=(\d+")/g, "$1main.html\?diary=170363\&page=$2");
str = str.replace(/(href="main\.html\?[^"]+") target="_blank"/g, "$1");
str = str.replace(/(\x3cdiv class="entry C\d+" id="A)(\d+)(">\s*\x3cdiv class="entry_date">)(\d{4} \d\d\/\d\d \d\d:\d\d)/g, '$1$2$3\x3cspan class="arc">A$2\x3c/span> at $4 \x3ca href="main.html?diary=172231\&page=$2" title="update">eDisp\x3c/a>');
str = str.replace(/(\x3cdiv class=")for-owner">(\x3ca href="main.html\?diary=172231\&page=)(\d+)">編集(\x3c\/a>)(\x3c\/div>)/, '$1disp_eDisp">A$3 : $2$3" title="edit">eDisp$4 / \x3ca href="/cgi-bin/diary_form.cgi?oid=yadokari;mode=edit;article_id=$3" title="normal_edit">normal_form$4$5');

return str;
};

entry = function(){
Fx.imgCNT = 0;
var uri = Fx.loc.match(/uri=(.+)/) ? RegExp.$1 : "/cgi-bin/diary.cgi?oid=all;n=100";
Fx.user = "all";
echo("fxUri", '\x3ca href="' + Fx.loc + '">Fx.uri\x3c/a>');
echo("userUri", '\x3ca href="' + uri + '" target="' + (Fx.user == 'yadokari' ? '_self' : '_blank') + '">User.uri\x3c/a>');

var m = Fid("modeDisp");
var all = Fx.user == "all";


Fx.e(uri, "no103Entry");

};

Lo.no103Entry = function(str){
if(str.match(/\x3cdiv id="menu">(.+)\x3cdiv id="main">(.+)/)){
var m1 = RegExp.$1;
var m3 = m1.split("\x3chr />");
var m2 = RegExp.$2;
m2 = m2.replace(/\x3c\/div>\x3c\/body>\s*\x3c\/html>/, "");

  m1 = m1.replace(/(href=")http:\/\/www\.eclat\.cc/g, "$1");
  m1 = m1.replace(/(href=")(\/cgi\-bin\/diary.cgi)([^"]*)/g, "$1main.html\?diary=174001\&uri=$2$3");
m1 = m1.replace(/(\x3cli.+?n=\d+)(.+?\x3c\/li>)/, "$1;c=0$2");
m1 = m1.replace(/(\x3ca.+?c=)(\d+)([^>]+>)/g, function(e0,e1,e2,e3){
return "\x3cspan class='cate_num'>C:" + ("000" + e2).slice(-4) + "\x3c/span> " + e1 + e2 + e3;}
);

var o = m1.match(/<li>.+?<\/li>/g); o.sort(); o.reverse();
m1 = o.join("");

echo("menuEx1", '\x3cdiv id="m2ex">\x3c/div>\x3cdiv id="m2ex2">\x3cdiv class="link">\x3cdiv class="link_title">カテゴリ別新着\x3c/div><ul class="link_text">' + m1 + '</ul>\x3c/div>\x3c/div>');
echo("mainEx1", '\x3cdiv id="m3ex">' + Fx.s103(m2) + '\x3c/div>');
subHeaderDisp(str);
}

var o = Fcn("main","div","import_cite");
var s = "",n = 1;

for(var i = 0; i < o.length; i++){
if(echo(o[i]).match(/user=([\w\-]+)/)) s += RegExp.$1 + " ";
}
s = s.replace(/^\s+|\s+$/g, "").split(" ").sort().join(" ") + " ";
 s = s.replace(/([\w\-]+ )(\1{0,})/g, function(e0,e1,e2){
  var f = e2.split(" ").length;
  return "<li>\x3cspan class='Res'>E:" + ("0" + (n++)).slice(-2) + "\x3c/span> \x3cspan class='all_oid'>\x3ca href='main.html?diary=172198&user=" + e1 + "'>" + e1 + "\x3c/a>\x3c/span> \x3cspan class='D2'>(" + f + "件)\x3c/span></li>";}

 );
var s1 = "\x3cdiv class='m2ex_box'><ul class='user_entry'>" + s + "</ul>\x3c/div>";
o = Fcn("main","div","entry_date");

s = "";
for(i = 0; i < o.length; i++){
if(echo(o[i]).match(/(\d{4}\s\d\d\/\d\d)/)) s += RegExp.$1 + " : ";
}
 s = s.replace(/(\d{4}\s\d\d\/\d\d\ : )(\1{0,})/g, function(e0,e1,e2){
  var f = e2.split(" : ").length;
  return "<li>\x3cspan class='D1'>" + e1 + "\x3c/span> " + Po.dateByDay(e1,1) + "\x3cspan class='D2'>" + f + "件)\x3c/span></li>";}
 );
s1 = "\x3cdiv class='m2ex_box'><ul class='days_count'>" + s + "</ul>\x3c/div>" + s1;
echo("m2ex",s1 );

};

[/beforeExec]
[cssText]
hr { display:none; }
html {
background:none; padding-left:0px;
}
hr { display:none; }
a { text-decoration:none; }
#showDisp { font-size:90%; }
#menu { width:30%; float:right; }
#main { margin-right:30%; }
.menu_logo { text-align:center; font:110%/1.2 "Times New Roman"; }

.menu_logo a { text-decoration:none; }

.link {
border:1px dashed orange; margin-bottom:1em;
border-radius:10px; -moz-border-radius:10px;
}
.link a { font-size:90%; }
.link_title { margin:.25em .5em; }

ul {
padding:0px; margin-left:26px; margin-top:0px;
margin-bottom:0px;
}
li { margin:0px; border-bottom:1px solid #ccc; line-height:1.2em; }
li:hover { border-bottom:1px solid tomato; }

#menu ul { margin-top:0px; margin-right:.5em; }
.menuBox { margin:1em .5em 1em 1em; }

#link_here,.link_here {
list-style-image:url(files/listitem.png);
}
#modeDisp {
padding:.5em 0 .25em 0;
background-color:#ffefff;
border:1px dashed orange;
-moz-border-radius:10px; border-radius:10px;
}
#menuMsg, .m2ex_box {
padding:.5em; margin-bottom:1em;
background-color:#ffefff;
border:1px dashed orange; font:90%/1.2 "Times New Roman"; color:#808080;
-moz-border-radius:10px; border-radius:10px;
}
#modeDisp div.link_info {
margin-left:1em;
padding-left:40px; line-height:35px;
font-family:"Times New Roman"; color:#808080;
background:url(files/hamu_folder2.gif) no-repeat;
}
#modeDisp div.link_info span.user_oid { color:red; font-weight:bold; }
#modeDisp div.link_info span.ver { color:#808080; font-size:80%; }

#modeDisp ul { margin-top:.5em; margin-bottom:.5em; }
#modeDisp ul li { margin-bottom:.25em; }
#modeDisp a { text-decoration:none; color:#000; }
#modeDisp a:hover { color:blue; }


.user_entry li:hover {

}

#mainExDisp {
padding:1em 0px;
}
#headerDisp {
background:url(files/yosei_2.gif) no-repeat; padding-left:62px;
height:60px; margin-bottom:.5em; color:navy;
text-shadow:3px 3px 6px #808080;
}
.t1 { margin-top:1em; font-size:80%; text-align:right;}

#m2ex .link {
margin-bottom:1em;
}
.nonUser { background:url(files/yukikko2b.gif) no-repeat center top;
padding-top:200px; text-align:center; padding-bottom:2em;
color:#808080;
}
.nonUser span { color:tomato; }

h2 {
font:bold 130%/30px "Times New Roman"; color:tomato;
background:url(files/hamu_folder1.gif) no-repeat; padding-left:40px;
padding-top:5px; margin:.5em;
}
dl * { padding:0; margin:0; list-style:none; }
dl dt { font:120%/1.4 "Times New Roman"; }
dl ul { background:url(files/kabe12.gif); }
dl li { font:100%/1.5 "Times New Roman"; }
.entry {
background: url(http://www.nancyan.net/image/futari/r/ringnote.gif) repeat-y -5px top;
margin-bottom:1em; padding:.25em .5em .25em 60px;
border-top:1px solid #add8e6;
border-right:1px solid #add8e6;
border-bottom:1px solid #add8e6;
}
.entry_date {
text-align:right;
font:100%/1.3 "Times New Roman"; color:#808080;
}
.entry_date a { text-decoration:none; }
.entry_title {
background:url(files/y_line_b.gif) no-repeat;
padding-left:54px;
font-weight:bold; min-height:58px;
font-size:16px; line-height:50px;
}
.entry_title a { text-decoration:none; }
.entry_title a:link { color:steelblue; }
.entry_title a:visited { color:#808080; }
.entry_title a:hover { color:magenta; }
.entry_info {
text-align:right;
font:90%/1.5 "Times New Roman";
}
.entry_body {
background:url(files/kabe12.gif);
border-top:1px solid #ccc; border-bottom:1px solid #ccc;
padding:.5em; margin-top:1em; margin-bottom:1em;
line-height:1.3em; color:#000;
}
.entry_body a { text-decoration:none;}
.entry_body a:link { color:steelblue; }
.entry_body a:visited { color:brown; }
.entry_body a:hover { color:magenta; }
.entry_responses {
font:90%/1.2 Verdana; text-align:right;
}
.disp_eDisp {
font:100%/1.2 "Times New Roman"; color:#808080;
padding-bottom:.5em; text-align:right;
}

.form3 {
padding:.25em .5em; border:2px outset white;
border-radius:3px; -moz-border-radius:3px;
background-color:orange; color:#000; margin-bottom:1em;
}

.form3 a { color:gold; }

.form_title { margin-bottom:2px; }
.form_body { text-align:right; color:red; }
.form_body input { color:#333; margin-left:2px; }
.s1 {
font-size:90%; font-family:"Comic Sans MS"; color:#000;
text-shadow:2px 2px 2px #808080;
}

.s2 {
font-size:70%; color:#ccc;
text-shadow:2px 2px 2px #808080;
}
span.Res, span.post_no, span.cate_num {
border:1px solid orange; -moz-border-radius:3px; border-radius:3px;
padding-left:.25em; padding-right:.25em; background-color:yellow; color:#000;
}

div.entry .entry_body div { font:100%/1.3 'Times New Roman'; color:steelblue; }

.page_link { text-align:center; margin-top:1em; }
span.D2 { float:right; }
span.day0 { color:red; }
span.day6 { color:steelblue; }
ul.link_text a { font-size:90%; line-height:1.3em; }
.user_entry li:hover {
list-style-image:url(files/listitem.png);
}
span.cate_num { font-size:90%; }
[/cssText]

[body]
<$$div id="showDisp">
<$$div id="menu">
<$$div id="menuExDisp" class="menuBox">
<$$div class="menu_logo">
<$$span id="fxUri"><$$a href="main.html?diary=174001">Fx.uri<$$/a><$$/span><$$img src="files/chou1.jpg" alt="蝶"><$$span id="userUri"><$$a href="/cgi-bin/diary.cgi?oid=all;n=100" target="_blank">User.uri<$$/a><$$/span>
<$$/div>

<form method="get" action="main.html" class="form3">
<input name="diary" value="172198" type="hidden">
<$$div class="form_title">
<label title="新規タブ"><input onclick="modeDispTarget(this,this.form)" type="checkbox"><$$span class="s1">Eclat diary 103<$$/span> <$$span class="s2">4.0.1<$$/span></label>
<$$/div>
<$$div class="form_body">
<input size="14" name="user" type="text"><input value="取得" type="submit">
<$$/div>
</form>

<$$div id="modeDisp">
<$$div class="link_info">
<$$span class="user_oid">みんなの日記<$$/span> <$$span class="ver">2.0.1<$$/span>
<$$/div>
<ul>
<li class="link_here"><$$span class="Res">#201<$$/span> <$$a href="main.html?diary=174001">新着日記<$$/a></li>
<li><$$span class="Res">#202<$$/span> <$$a href="main.html?diary=172196">非公開日記<$$/a></li>
<li><$$span class="Res">#203<$$/span> <$$a href="main.html?diary=174002">新着コメント<$$/a></li>
</ul>
<$$/div>
<$$/div>
<$$div id="menuEx1" class="menuBox"><$$/div>
<$$div id="menuMsg" class="menuBox">メニューについて。 <$$/div>
<$$div id="imgLinkDisp" class="menuBox"><$$/div>
<$$/div>

<$$div id="main"><$$div id="mainExDisp">
<$$div id="headerDisp"><$$/div>
<$$div id="mainEx1"><$$/div>
<$$/div><$$/div>

</$$div>

[/body]
[exec]
document.title = "エクラの新着日記 1.0.2";
entry();
[/exec]
[/diary:174001]

■仕様書