2017-03-31 posted in []
```
(function(e, s) {
e.src = s;
e.onload = function() {
jQuery.noConflict();
console.log(‘jQuery injected’);
};
document.head.appendChild(e);
})(document.createElement(‘script’), ‘//code.jquery.com/jquery-latest.min.js’);
login = function(nick) {
jQuery.post(“/login?r=0.9876543210987654”,
{roomid:roomid, nickname:nick, password:””, gender:my_gender},
function(data) {
console.log(data);
eval(data.match(/my_cserial./)[0]);
eval(data.match(/my_nickname./)[0]);
}, “html”);
};
relogin = function(nick) {
jQuery.post(“/logout”,
{roomid:roomid, logout_url:””, cserial:my_cserial, launch:””},
function() {
login(nick ? nick : my_nickname.substring(3));
});
};
adwm_post = function() { showmsg(“adwm_post”); }
adver_wait = function() { showmsg(“adver_wait”); }
adver1_wait = function() { showmsg(“adver1_wait”); }
dirty_filter = function(s) { return s; }
function online_find_nickname(str) {
for(var i=0; i<online.length; i++) {
online[i].icon = “”;
if(online[i].nickname==str) return i;
}
return -1;
}
function msg_area() {
var madoc = this.frames[‘ma’].document;
var mamain = madoc.getElementById(‘main’);
if(!mamain) return;
mamain.innerHTML = “”;
showmsg(“screen_lines: “ + screen_lines);
screen_lines = 1;
}
function online_area() {
var sy = online_scroll_y();
this.frames[‘oa’].document.open();
with(this.frames[‘oa’].document) {
writeln(“<HTML>”);
writeln(“<HEAD>”);
writeln(“<meta http-equiv="Content-Type" content="text/html; charset=big5">”);
writeln(“<meta http-equiv="Content-Language" content="zh-tw">”);
writeln(“<style type="text/css">”);
writeln(“td { font-size: 10pt; }”);
writeln(“tr { line-height: 1.2; }”);
writeln(“A:link, A:visited, A:active { text-decoration: none; }”);
writeln(“</style>”);
writeln(“<script language="javascript">document.writeln("");<”+”/”+”script>”);
writeln(“</HEAD>”);
writeln(“<body bgcolor='#000000' text='ffcc00' bgproperties='fixed' topmargin='0' leftmargin='0'>”);
writeln(“");
writeln("<div align='center'>");
writeln("<script language=\"JavaScript\">");
writeln("function gcolor(gender) { return (gender=='girl') ? parent.girlcolor : parent.boycolor; }");
writeln("function openbook(uno) { window.open('http://board.ek21.com/board?uno='+uno, '_book', ''); }");
writeln("document.writeln(parent.online_prefix);");
writeln("document.writeln(\"<table border='0' cellpadding='0' cellspacing='0' width='100%' align='center'>\");");
writeln("for(var i=0; i<parent.online.length; i++) {");
writeln(" var u = parent.online[i];");
writeln(" document.write(\"<tr><td align='center' width='30'>\");");
writeln(" if(u.icon!='') document.write(\"\");");
writeln(" document.write(\"</td>\");");
writeln(" document.write(\"<td><a href=\\\"javascript:parent.sel('\"+u.nickname+\"','\"+u.gender+\"')\\\" target='ta'\");");
writeln(" if(u.uno>0) document.write(\" ondblclick='openbook(\"+u.uno+\")'\");");
writeln(" document.write(\">\");");
writeln(" document.write(\"\"+u.nickname+\"</a>\");");
writeln(" if(u.level!='') document.write(\" \"+u.level);");
writeln(" document.write(\"</td>\");");
writeln(" document.writeln(\"</tr>\");");
writeln("}");
writeln("document.writeln(\"</table>\");");
writeln("document.writeln(parent.online_append);");
writeln("document.write(\"<table border='0' cellspacing='1' cellpadding='0' align='center' width='100%' style='margin-top:10px;margin-bottom:8px;'><tr><td height='18' align='center'>\");");
writeln("document.write(\"<font color='\"+gcolor('boy')+\"'>♂\"+parent.online_boy_count()+\"人</font> \");");
writeln("document.write(\"<font color='\"+gcolor('girl')+\"'>♀\"+parent.online_girl_count()+\"人</font></td></tr>\");");
writeln("document.write(\"<tr><td align='center' height='18'>總人數 \"+parent.online_count()+\" 人</td></tr>\");");
writeln("document.write(\"<tr><td align='center' height='18'>本室容量 \"+parent.maxuser+\" 人</td></tr>\");");
writeln("document.write(\"<tr><td align='center' height='18'>室別: \"+parent.roomid+\"</td></tr>\");");
writeln("document.write(\"</table>\");");
writeln("<"+"/"+"script>");
writeln("</BODY>");
writeln("</HTML>");
}
this.frames['oa'].document.close();
this.frames['oa'].scrollTo(0, sy);
}
.
reply_count: 0
get_replies : 0
.