server/src/main/web-resources/_firebug/firebug.js
author ymh <ymh.work@gmail.com>
Tue, 01 Jan 2013 09:28:03 +0100
changeset 50 7b517a54b708
parent 45 37c9a17c3284
permissions -rw-r--r--
Merge last changes from rv
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
/*
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
	Available via Academic Free License >= 2.1 OR the modified BSD license.
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
	see: http://dojotoolkit.org/license for details
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
*/
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
//>>built
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
define("dojo/_firebug/firebug",["../_base/kernel","require","../_base/html","../sniff","../_base/array","../_base/lang","../_base/event","../_base/unload"],function(_1,_2,_3,_4){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
var _5=(/Trident/.test(window.navigator.userAgent));
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
if(_5){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
var _6=["log","info","debug","warn","error"];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
for(var i=0;i<_6.length;i++){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
var m=_6[i];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
if(!console[m]||console[m]._fake){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
continue;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
var n="_"+_6[i];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
console[n]=console[m];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
console[m]=(function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
var _7=n;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
return function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
console[_7](Array.prototype.join.call(arguments," "));
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
})();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
try{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
console.clear();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
catch(e){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
if(_4("ff")||_4("chrome")||_4("safari")||_5||window.firebug||(typeof console!="undefined"&&console.firebug)||_1.config.useCustomLogger||_4("air")){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
return;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
try{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
if(window!=window.parent){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
if(window.parent["console"]){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
window.console=window.parent.console;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
return;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
catch(e){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
var _8=document;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
var _9=window;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    47
var _a=0;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    48
var _b=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
var _c=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
var _d=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
var _e=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
var _f=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
var _10=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
var _11=false;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
var _12=[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
var _13=[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
var _14={};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
var _15={};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
var _16=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    60
var _17;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    61
var _18;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    62
var _19=false;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
var _1a=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    64
var _1b=document.createElement("div");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
var _1c;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    66
var _1d;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
window.console={_connects:[],log:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
_1e(arguments,"");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    69
},debug:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    70
_1e(arguments,"debug");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    71
},info:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    72
_1e(arguments,"info");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    73
},warn:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    74
_1e(arguments,"warning");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    75
},error:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    76
_1e(arguments,"error");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    77
},assert:function(_1f,_20){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    78
if(!_1f){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    79
var _21=[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    80
for(var i=1;i<arguments.length;++i){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    81
_21.push(arguments[i]);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    82
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    83
_1e(_21.length?_21:["Assertion Failure"],"error");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    84
throw _20?_20:"Assertion Failure";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    85
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    86
},dir:function(obj){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    87
var str=_22(obj);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    88
str=str.replace(/\n/g,"<br />");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    89
str=str.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    90
_23([str],"dir");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    91
},dirxml:function(_24){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    92
var _25=[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    93
_26(_24,_25);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    94
_23(_25,"dirxml");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    95
},group:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    96
_23(arguments,"group",_27);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    97
},groupEnd:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    98
_23(arguments,"",_28);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
    99
},time:function(_29){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   100
_14[_29]=new Date().getTime();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   101
},timeEnd:function(_2a){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   102
if(_2a in _14){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   103
var _2b=(new Date()).getTime()-_14[_2a];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   104
_1e([_2a+":",_2b+"ms"]);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   105
delete _14[_2a];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   106
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   107
},count:function(_2c){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   108
if(!_15[_2c]){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   109
_15[_2c]=0;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   110
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   111
_15[_2c]++;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   112
_1e([_2c+": "+_15[_2c]]);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   113
},trace:function(_2d){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   114
var _2e=_2d||3;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   115
var f=console.trace.caller;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   116
for(var i=0;i<_2e;i++){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   117
var _2f=f.toString();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   118
var _30=[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   119
for(var a=0;a<f.arguments.length;a++){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   120
_30.push(f.arguments[a]);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   121
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   122
if(f.arguments.length){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   123
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   124
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   125
f=f.caller;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   126
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   127
},profile:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   128
this.warn(["profile() not supported."]);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   129
},profileEnd:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   130
},clear:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   131
if(_c){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   132
while(_c.childNodes.length){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   133
_1.destroy(_c.firstChild);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   134
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   135
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   136
_1.forEach(this._connects,_1.disconnect);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   137
},open:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   138
_31(true);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   139
},close:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   140
if(_11){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   141
_31();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   142
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   143
},_restoreBorder:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   144
if(_1c){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   145
_1c.style.border=_1d;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   146
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   147
},openDomInspector:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   148
_19=true;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   149
_c.style.display="none";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   150
_16.style.display="block";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   151
_d.style.display="none";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   152
document.body.style.cursor="pointer";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   153
_17=_1.connect(document,"mousemove",function(evt){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   154
if(!_19){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   155
return;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   156
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   157
if(!_1a){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   158
_1a=setTimeout(function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   159
_1a=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   160
},50);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   161
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   162
return;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   163
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   164
var _32=evt.target;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   165
if(_32&&(_1c!==_32)){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   166
var _33=true;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   167
console._restoreBorder();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   168
var _34=[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   169
_26(_32,_34);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   170
_16.innerHTML=_34.join("");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   171
_1c=_32;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   172
_1d=_1c.style.border;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   173
_1c.style.border="#0000FF 1px solid";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   174
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   175
});
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   176
setTimeout(function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   177
_18=_1.connect(document,"click",function(evt){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   178
document.body.style.cursor="";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   179
_19=!_19;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   180
_1.disconnect(_18);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   181
});
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   182
},30);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   183
},_closeDomInspector:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   184
document.body.style.cursor="";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   185
_1.disconnect(_17);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   186
_1.disconnect(_18);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   187
_19=false;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   188
console._restoreBorder();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   189
},openConsole:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   190
_c.style.display="block";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   191
_16.style.display="none";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   192
_d.style.display="none";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   193
console._closeDomInspector();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   194
},openObjectInspector:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   195
_c.style.display="none";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   196
_16.style.display="none";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   197
_d.style.display="block";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   198
console._closeDomInspector();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   199
},recss:function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   200
var i,a,s;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   201
a=document.getElementsByTagName("link");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   202
for(i=0;i<a.length;i++){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   203
s=a[i];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   204
if(s.rel.toLowerCase().indexOf("stylesheet")>=0&&s.href){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   205
var h=s.href.replace(/(&|%5C?)forceReload=\d+/,"");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   206
s.href=h+(h.indexOf("?")>=0?"&":"?")+"forceReload="+new Date().valueOf();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   207
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   208
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   209
}};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   210
function _31(_35){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   211
_11=_35||!_11;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   212
if(_b){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   213
_b.style.display=_11?"block":"none";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   214
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   215
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   216
function _36(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   217
_31(true);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   218
if(_f){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   219
_f.focus();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   220
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   221
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   222
function _37(x,y,w,h){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   223
var win=window.open("","_firebug","status=0,menubar=0,resizable=1,top="+y+",left="+x+",width="+w+",height="+h+",scrollbars=1,addressbar=0");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   224
if(!win){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   225
var msg="Firebug Lite could not open a pop-up window, most likely because of a blocker.\n"+"Either enable pop-ups for this domain, or change the djConfig to popup=false.";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   226
alert(msg);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   227
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   228
_38(win);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   229
var _39=win.document;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   230
var _3a="<html style=\"height:100%;\"><head><title>Firebug Lite</title></head>\n"+"<body bgColor=\"#ccc\" style=\"height:97%;\" onresize=\"opener.onFirebugResize()\">\n"+"<div id=\"fb\"></div>"+"</body></html>";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   231
_39.write(_3a);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   232
_39.close();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   233
return win;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   234
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   235
function _38(wn){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   236
var d=new Date();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   237
d.setTime(d.getTime()+(60*24*60*60*1000));
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   238
d=d.toUTCString();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   239
var dc=wn.document,_3b;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   240
if(wn.innerWidth){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   241
_3b=function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   242
return {w:wn.innerWidth,h:wn.innerHeight};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   243
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   244
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   245
if(dc.documentElement&&dc.documentElement.clientWidth){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   246
_3b=function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   247
return {w:dc.documentElement.clientWidth,h:dc.documentElement.clientHeight};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   248
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   249
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   250
if(dc.body){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   251
_3b=function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   252
return {w:dc.body.clientWidth,h:dc.body.clientHeight};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   253
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   254
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   255
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   256
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   257
window.onFirebugResize=function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   258
_49(_3b().h);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   259
clearInterval(wn._firebugWin_resize);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   260
wn._firebugWin_resize=setTimeout(function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   261
var x=wn.screenLeft,y=wn.screenTop,w=wn.outerWidth||wn.document.body.offsetWidth,h=wn.outerHeight||wn.document.body.offsetHeight;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   262
document.cookie="_firebugPosition="+[x,y,w,h].join(",")+"; expires="+d+"; path=/";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   263
},5000);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   264
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   265
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   266
function _3c(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   267
if(_b){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   268
return;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   269
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   270
_31(true);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   271
if(_1.config.popup){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   272
var _3d="100%";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   273
var _3e=document.cookie.match(/(?:^|; )_firebugPosition=([^;]*)/);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   274
var p=_3e?_3e[1].split(","):[2,2,320,480];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   275
_9=_37(p[0],p[1],p[2],p[3]);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   276
_8=_9.document;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   277
_1.config.debugContainerId="fb";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   278
_9.console=window.console;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   279
_9.dojo=window.dojo;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   280
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   281
_8=document;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   282
_3d=(_1.config.debugHeight||300)+"px";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   283
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   284
var _3f=_8.createElement("link");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   285
_3f.href=_2.toUrl("./firebug.css");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   286
_3f.rel="stylesheet";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   287
_3f.type="text/css";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   288
var _40=_8.getElementsByTagName("head");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   289
if(_40){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   290
_40=_40[0];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   291
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   292
if(!_40){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   293
_40=_8.getElementsByTagName("html")[0];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   294
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   295
if(_4("ie")){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   296
window.setTimeout(function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   297
_40.appendChild(_3f);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   298
},0);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   299
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   300
_40.appendChild(_3f);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   301
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   302
if(_1.config.debugContainerId){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   303
_b=_8.getElementById(_1.config.debugContainerId);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   304
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   305
if(!_b){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   306
_b=_8.createElement("div");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   307
_8.body.appendChild(_b);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   308
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   309
_b.className+=" firebug";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   310
_b.id="firebug";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   311
_b.style.height=_3d;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   312
_b.style.display=(_11?"block":"none");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   313
var _41=function(_42,_43,_44,_45){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   314
return "<li class=\""+_45+"\"><a href=\"javascript:void(0);\" onclick=\"console."+_44+"(); return false;\" title=\""+_43+"\">"+_42+"</a></li>";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   315
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   316
_b.innerHTML="<div id=\"firebugToolbar\">"+"  <ul id=\"fireBugTabs\" class=\"tabs\">"+_41("Clear","Remove All Console Logs","clear","")+_41("ReCSS","Refresh CSS without reloading page","recss","")+_41("Console","Show Console Logs","openConsole","gap")+_41("DOM","Show DOM Inspector","openDomInspector","")+_41("Object","Show Object Inspector","openObjectInspector","")+((_1.config.popup)?"":_41("Close","Close the console","close","gap"))+"\t</ul>"+"</div>"+"<input type=\"text\" id=\"firebugCommandLine\" />"+"<div id=\"firebugLog\"></div>"+"<div id=\"objectLog\" style=\"display:none;\">Click on an object in the Log display</div>"+"<div id=\"domInspect\" style=\"display:none;\">Hover over HTML elements in the main page. Click to hold selection.</div>";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   317
_10=_8.getElementById("firebugToolbar");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   318
_f=_8.getElementById("firebugCommandLine");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   319
_46(_f,"keydown",_47);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   320
_46(_8,_4("ie")||_4("safari")?"keydown":"keypress",_48);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   321
_c=_8.getElementById("firebugLog");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   322
_d=_8.getElementById("objectLog");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   323
_16=_8.getElementById("domInspect");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   324
_e=_8.getElementById("fireBugTabs");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   325
_49();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   326
_4a();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   327
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   328
_1.addOnLoad(_3c);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   329
function _4b(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   330
_8=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   331
if(_9.console){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   332
_9.console.clear();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   333
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   334
_9=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   335
_b=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   336
_c=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   337
_d=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   338
_16=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   339
_f=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   340
_12=[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   341
_13=[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   342
_14={};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   343
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   344
function _4c(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   345
var _4d=_f.value;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   346
_f.value="";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   347
_23([">  ",_4d],"command");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   348
var _4e;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   349
try{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   350
_4e=eval(_4d);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   351
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   352
catch(e){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   353
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   354
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   355
function _49(h){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   356
var _4f=25;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   357
var _50=h?h-(_4f+_f.offsetHeight+25+(h*0.01))+"px":(_b.offsetHeight-_4f-_f.offsetHeight)+"px";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   358
_c.style.top=_4f+"px";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   359
_c.style.height=_50;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   360
_d.style.height=_50;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   361
_d.style.top=_4f+"px";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   362
_16.style.height=_50;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   363
_16.style.top=_4f+"px";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   364
_f.style.bottom=0;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   365
_1.addOnWindowUnload(_4b);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   366
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   367
function _23(_51,_52,_53){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   368
if(_c){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   369
_54(_51,_52,_53);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   370
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   371
_12.push([_51,_52,_53]);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   372
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   373
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   374
function _4a(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   375
var _55=_12;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   376
_12=[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   377
for(var i=0;i<_55.length;++i){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   378
_54(_55[i][0],_55[i][1],_55[i][2]);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   379
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   380
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   381
function _54(_56,_57,_58){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   382
var _59=_c.scrollTop+_c.offsetHeight>=_c.scrollHeight;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   383
_58=_58||_5a;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   384
_58(_56,_57);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   385
if(_59){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   386
_c.scrollTop=_c.scrollHeight-_c.offsetHeight;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   387
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   388
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   389
function _5b(row){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   390
var _5c=_13.length?_13[_13.length-1]:_c;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   391
_5c.appendChild(row);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   392
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   393
function _5a(_5d,_5e){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   394
var row=_c.ownerDocument.createElement("div");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   395
row.className="logRow"+(_5e?" logRow-"+_5e:"");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   396
row.innerHTML=_5d.join("");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   397
_5b(row);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   398
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   399
function _27(_5f,_60){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   400
_1e(_5f,_60);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   401
var _61=_c.ownerDocument.createElement("div");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   402
_61.className="logGroupBox";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   403
_5b(_61);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   404
_13.push(_61);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   405
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   406
function _28(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   407
_13.pop();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   408
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   409
function _1e(_62,_63){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   410
var _64=[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   411
var _65=_62[0];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   412
var _66=0;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   413
if(typeof (_65)!="string"){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   414
_65="";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   415
_66=-1;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   416
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   417
var _67=_68(_65);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   418
for(var i=0;i<_67.length;++i){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   419
var _69=_67[i];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   420
if(_69&&typeof _69=="object"){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   421
_69.appender(_62[++_66],_64);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   422
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   423
_6a(_69,_64);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   424
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   425
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   426
var ids=[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   427
var obs=[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   428
for(i=_66+1;i<_62.length;++i){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   429
_6a(" ",_64);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   430
var _6b=_62[i];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   431
if(_6b===undefined||_6b===null){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   432
_6c(_6b,_64);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   433
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   434
if(typeof (_6b)=="string"){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   435
_6a(_6b,_64);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   436
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   437
if(_6b instanceof Date){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   438
_6a(_6b.toString(),_64);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   439
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   440
if(_6b.nodeType==9){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   441
_6a("[ XmlDoc ]",_64);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   442
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   443
var id="_a"+_a++;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   444
ids.push(id);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   445
obs.push(_6b);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   446
var str="<a id=\""+id+"\" href=\"javascript:void(0);\">"+_6d(_6b)+"</a>";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   447
_6e(str,_64);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   448
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   449
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   450
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   451
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   452
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   453
_23(_64,_63);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   454
for(i=0;i<ids.length;i++){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   455
var btn=_8.getElementById(ids[i]);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   456
if(!btn){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   457
continue;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   458
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   459
btn.obj=obs[i];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   460
_9.console._connects.push(_1.connect(btn,"onclick",function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   461
console.openObjectInspector();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   462
try{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   463
_22(this.obj);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   464
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   465
catch(e){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   466
this.obj=e;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   467
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   468
_d.innerHTML="<pre>"+_22(this.obj)+"</pre>";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   469
}));
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   470
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   471
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   472
function _68(_6f){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   473
var _70=[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   474
var reg=/((^%|[^\\]%)(\d+)?(\.)([a-zA-Z]))|((^%|[^\\]%)([a-zA-Z]))/;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   475
var _71={s:_6a,d:_72,i:_72,f:_73};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   476
for(var m=reg.exec(_6f);m;m=reg.exec(_6f)){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   477
var _74=m[8]?m[8]:m[5];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   478
var _75=_74 in _71?_71[_74]:_76;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   479
var _77=m[3]?parseInt(m[3]):(m[4]=="."?-1:0);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   480
_70.push(_6f.substr(0,m[0][0]=="%"?m.index:m.index+1));
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   481
_70.push({appender:_75,precision:_77});
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   482
_6f=_6f.substr(m.index+m[0].length);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   483
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   484
_70.push(_6f);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   485
return _70;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   486
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   487
function _78(_79){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   488
function _7a(ch){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   489
switch(ch){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   490
case "<":
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   491
return "&lt;";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   492
case ">":
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   493
return "&gt;";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   494
case "&":
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   495
return "&amp;";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   496
case "'":
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   497
return "&#39;";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   498
case "\"":
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   499
return "&quot;";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   500
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   501
return "?";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   502
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   503
return String(_79).replace(/[<>&"']/g,_7a);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   504
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   505
function _7b(_7c){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   506
try{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   507
return _7c+"";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   508
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   509
catch(e){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   510
return null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   511
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   512
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   513
function _6e(_7d,_7e){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   514
_7e.push(_7b(_7d));
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   515
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   516
function _6a(_7f,_80){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   517
_80.push(_78(_7b(_7f)));
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   518
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   519
function _6c(_81,_82){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   520
_82.push("<span class=\"objectBox-null\">",_78(_7b(_81)),"</span>");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   521
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   522
function _83(_84,_85){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   523
_85.push("<span class=\"objectBox-string\">&quot;",_78(_7b(_84)),"&quot;</span>");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   524
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   525
function _72(_86,_87){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   526
_87.push("<span class=\"objectBox-number\">",_78(_7b(_86)),"</span>");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   527
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   528
function _73(_88,_89){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   529
_89.push("<span class=\"objectBox-number\">",_78(_7b(_88)),"</span>");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   530
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   531
function _8a(_8b,_8c){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   532
_8c.push("<span class=\"objectBox-function\">",_6d(_8b),"</span>");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   533
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   534
function _76(_8d,_8e){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   535
try{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   536
if(_8d===undefined){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   537
_6c("undefined",_8e);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   538
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   539
if(_8d===null){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   540
_6c("null",_8e);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   541
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   542
if(typeof _8d=="string"){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   543
_83(_8d,_8e);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   544
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   545
if(typeof _8d=="number"){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   546
_72(_8d,_8e);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   547
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   548
if(typeof _8d=="function"){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   549
_8a(_8d,_8e);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   550
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   551
if(_8d.nodeType==1){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   552
_8f(_8d,_8e);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   553
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   554
if(typeof _8d=="object"){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   555
_90(_8d,_8e);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   556
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   557
_6a(_8d,_8e);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   558
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   559
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   560
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   561
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   562
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   563
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   564
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   565
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   566
catch(e){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   567
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   568
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   569
function _90(_91,_92){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   570
var _93=_7b(_91);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   571
var _94=/\[object (.*?)\]/;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   572
var m=_94.exec(_93);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   573
_92.push("<span class=\"objectBox-object\">",m?m[1]:_93,"</span>");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   574
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   575
function _8f(_95,_96){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   576
_96.push("<span class=\"objectBox-selector\">");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   577
_96.push("<span class=\"selectorTag\">",_78(_95.nodeName.toLowerCase()),"</span>");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   578
if(_95.id){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   579
_96.push("<span class=\"selectorId\">#",_78(_95.id),"</span>");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   580
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   581
if(_95.className){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   582
_96.push("<span class=\"selectorClass\">.",_78(_95.className),"</span>");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   583
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   584
_96.push("</span>");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   585
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   586
function _26(_97,_98){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   587
if(_97.nodeType==1){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   588
_98.push("<div class=\"objectBox-element\">","&lt;<span class=\"nodeTag\">",_97.nodeName.toLowerCase(),"</span>");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   589
for(var i=0;i<_97.attributes.length;++i){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   590
var _99=_97.attributes[i];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   591
if(!_99.specified){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   592
continue;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   593
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   594
_98.push("&nbsp;<span class=\"nodeName\">",_99.nodeName.toLowerCase(),"</span>=&quot;<span class=\"nodeValue\">",_78(_99.nodeValue),"</span>&quot;");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   595
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   596
if(_97.firstChild){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   597
_98.push("&gt;</div><div class=\"nodeChildren\">");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   598
for(var _9a=_97.firstChild;_9a;_9a=_9a.nextSibling){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   599
_26(_9a,_98);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   600
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   601
_98.push("</div><div class=\"objectBox-element\">&lt;/<span class=\"nodeTag\">",_97.nodeName.toLowerCase(),"&gt;</span></div>");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   602
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   603
_98.push("/&gt;</div>");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   604
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   605
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   606
if(_97.nodeType==3){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   607
_98.push("<div class=\"nodeText\">",_78(_97.nodeValue),"</div>");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   608
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   609
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   610
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   611
function _46(_9b,_9c,_9d){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   612
if(document.all){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   613
_9b.attachEvent("on"+_9c,_9d);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   614
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   615
_9b.addEventListener(_9c,_9d,false);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   616
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   617
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   618
function _9e(_9f,_a0,_a1){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   619
if(document.all){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   620
_9f.detachEvent("on"+_a0,_a1);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   621
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   622
_9f.removeEventListener(_a0,_a1,false);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   623
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   624
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   625
function _a2(_a3){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   626
if(document.all){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   627
_a3.cancelBubble=true;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   628
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   629
_a3.stopPropagation();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   630
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   631
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   632
function _a4(msg,_a5,_a6){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   633
var _a7=_a5.lastIndexOf("/");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   634
var _a8=_a7==-1?_a5:_a5.substr(_a7+1);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   635
var _a9=["<span class=\"errorMessage\">",msg,"</span>","<div class=\"objectBox-sourceLink\">",_a8," (line ",_a6,")</div>"];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   636
_23(_a9,"error");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   637
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   638
var _aa=new Date().getTime();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   639
function _48(_ab){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   640
var _ac=(new Date()).getTime();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   641
if(_ac>_aa+200){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   642
_ab=_1.fixEvent(_ab);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   643
var _ad=_1.keys;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   644
var ekc=_ab.keyCode;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   645
_aa=_ac;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   646
if(ekc==_ad.F12){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   647
_31();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   648
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   649
if((ekc==_ad.NUMPAD_ENTER||ekc==76)&&_ab.shiftKey&&(_ab.metaKey||_ab.ctrlKey)){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   650
_36();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   651
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   652
return;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   653
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   654
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   655
_a2(_ab);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   656
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   657
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   658
function _47(e){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   659
var dk=_1.keys;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   660
if(e.keyCode==13&&_f.value){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   661
_ae(_f.value);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   662
_4c();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   663
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   664
if(e.keyCode==27){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   665
_f.value="";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   666
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   667
if(e.keyCode==dk.UP_ARROW||e.charCode==dk.UP_ARROW){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   668
_af("older");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   669
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   670
if(e.keyCode==dk.DOWN_ARROW||e.charCode==dk.DOWN_ARROW){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   671
_af("newer");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   672
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   673
if(e.keyCode==dk.HOME||e.charCode==dk.HOME){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   674
_b0=1;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   675
_af("older");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   676
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   677
if(e.keyCode==dk.END||e.charCode==dk.END){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   678
_b0=999999;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   679
_af("newer");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   680
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   681
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   682
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   683
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   684
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   685
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   686
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   687
var _b0=-1;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   688
var _b1=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   689
function _ae(_b2){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   690
var _b3=_b4("firebug_history");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   691
_b3=(_b3)?_1.fromJson(_b3):[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   692
var pos=_1.indexOf(_b3,_b2);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   693
if(pos!=-1){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   694
_b3.splice(pos,1);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   695
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   696
_b3.push(_b2);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   697
_b4("firebug_history",_1.toJson(_b3),30);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   698
while(_b3.length&&!_b4("firebug_history")){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   699
_b3.shift();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   700
_b4("firebug_history",_1.toJson(_b3),30);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   701
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   702
_b1=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   703
_b0=-1;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   704
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   705
function _af(_b5){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   706
var _b6=_b4("firebug_history");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   707
_b6=(_b6)?_1.fromJson(_b6):[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   708
if(!_b6.length){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   709
return;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   710
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   711
if(_b1===null){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   712
_b1=_f.value;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   713
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   714
if(_b0==-1){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   715
_b0=_b6.length;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   716
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   717
if(_b5=="older"){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   718
--_b0;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   719
if(_b0<0){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   720
_b0=0;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   721
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   722
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   723
if(_b5=="newer"){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   724
++_b0;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   725
if(_b0>_b6.length){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   726
_b0=_b6.length;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   727
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   728
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   729
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   730
if(_b0==_b6.length){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   731
_f.value=_b1;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   732
_b1=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   733
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   734
_f.value=_b6[_b0];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   735
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   736
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   737
function _b4(_b7,_b8){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   738
var c=document.cookie;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   739
if(arguments.length==1){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   740
var _b9=c.match(new RegExp("(?:^|; )"+_b7+"=([^;]*)"));
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   741
return _b9?decodeURIComponent(_b9[1]):undefined;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   742
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   743
var d=new Date();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   744
d.setMonth(d.getMonth()+1);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   745
document.cookie=_b7+"="+encodeURIComponent(_b8)+((d.toUtcString)?"; expires="+d.toUTCString():"");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   746
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   747
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   748
function _ba(it){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   749
return it&&it instanceof Array||typeof it=="array";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   750
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   751
function _bb(o){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   752
var cnt=0;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   753
for(var nm in o){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   754
cnt++;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   755
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   756
return cnt;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   757
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   758
function _22(o,i,txt,_bc){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   759
var ind=" \t";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   760
txt=txt||"";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   761
i=i||ind;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   762
_bc=_bc||[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   763
var _bd;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   764
if(o&&o.nodeType==1){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   765
var _be=[];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   766
_26(o,_be);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   767
return _be.join("");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   768
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   769
var br=",\n",cnt=0,_bf=_bb(o);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   770
if(o instanceof Date){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   771
return i+o.toString()+br;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   772
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   773
looking:
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   774
for(var nm in o){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   775
cnt++;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   776
if(cnt==_bf){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   777
br="\n";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   778
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   779
if(o[nm]===window||o[nm]===document){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   780
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   781
if(o[nm]===null){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   782
txt+=i+nm+" : NULL"+br;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   783
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   784
if(o[nm]&&o[nm].nodeType){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   785
if(o[nm].nodeType==1){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   786
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   787
if(o[nm].nodeType==3){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   788
txt+=i+nm+" : [ TextNode "+o[nm].data+" ]"+br;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   789
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   790
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   791
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   792
if(typeof o[nm]=="object"&&(o[nm] instanceof String||o[nm] instanceof Number||o[nm] instanceof Boolean)){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   793
txt+=i+nm+" : "+o[nm]+","+br;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   794
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   795
if(o[nm] instanceof Date){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   796
txt+=i+nm+" : "+o[nm].toString()+br;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   797
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   798
if(typeof (o[nm])=="object"&&o[nm]){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   799
for(var j=0,_c0;_c0=_bc[j];j++){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   800
if(o[nm]===_c0){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   801
txt+=i+nm+" : RECURSION"+br;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   802
continue looking;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   803
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   804
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   805
_bc.push(o[nm]);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   806
_bd=(_ba(o[nm]))?["[","]"]:["{","}"];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   807
txt+=i+nm+" : "+_bd[0]+"\n";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   808
txt+=_22(o[nm],i+ind,"",_bc);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   809
txt+=i+_bd[1]+br;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   810
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   811
if(typeof o[nm]=="undefined"){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   812
txt+=i+nm+" : undefined"+br;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   813
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   814
if(nm=="toString"&&typeof o[nm]=="function"){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   815
var _c1=o[nm]();
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   816
if(typeof _c1=="string"&&_c1.match(/function ?(.*?)\(/)){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   817
_c1=_78(_6d(o[nm]));
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   818
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   819
txt+=i+nm+" : "+_c1+br;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   820
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   821
txt+=i+nm+" : "+_78(_6d(o[nm]))+br;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   822
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   823
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   824
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   825
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   826
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   827
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   828
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   829
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   830
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   831
return txt;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   832
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   833
function _6d(obj){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   834
var _c2=(obj instanceof Error);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   835
if(obj.nodeType==1){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   836
return _78("< "+obj.tagName.toLowerCase()+" id=\""+obj.id+"\" />");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   837
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   838
if(obj.nodeType==3){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   839
return _78("[TextNode: \""+obj.nodeValue+"\"]");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   840
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   841
var nm=(obj&&(obj.id||obj.name||obj.ObjectID||obj.widgetId));
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   842
if(!_c2&&nm){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   843
return "{"+nm+"}";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   844
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   845
var _c3=2;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   846
var _c4=4;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   847
var cnt=0;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   848
if(_c2){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   849
nm="[ Error: "+(obj.message||obj.description||obj)+" ]";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   850
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   851
if(_ba(obj)){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   852
nm="["+obj.slice(0,_c4).join(",");
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   853
if(obj.length>_c4){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   854
nm+=" ... ("+obj.length+" items)";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   855
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   856
nm+="]";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   857
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   858
if(typeof obj=="function"){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   859
nm=obj+"";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   860
var reg=/function\s*([^\(]*)(\([^\)]*\))[^\{]*\{/;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   861
var m=reg.exec(nm);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   862
if(m){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   863
if(!m[1]){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   864
m[1]="function";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   865
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   866
nm=m[1]+m[2];
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   867
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   868
nm="function()";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   869
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   870
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   871
if(typeof obj!="object"||typeof obj=="string"){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   872
nm=obj+"";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   873
}else{
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   874
nm="{";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   875
for(var i in obj){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   876
cnt++;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   877
if(cnt>_c3){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   878
break;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   879
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   880
nm+=i+":"+_78(obj[i])+"  ";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   881
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   882
nm+="}";
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   883
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   884
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   885
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   886
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   887
return nm;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   888
};
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   889
_46(document,_4("ie")||_4("safari")?"keydown":"keypress",_48);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   890
if((document.documentElement.getAttribute("debug")=="true")||(_1.config.isDebug)){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   891
_31(true);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   892
}
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   893
_1.addOnWindowUnload(function(){
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   894
_9e(document,_4("ie")||_4("safari")?"keydown":"keypress",_48);
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   895
window.onFirebugResize=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   896
window.console=null;
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   897
});
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents:
diff changeset
   898
});