HLW/web/common/assets/js/uicommon.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var UI={};
var jQ=window.jQuery&&jQuery.noConflict();
var $win=getWebmailWindow;
function $doc(){
return $win().document;
};
function $$(id){
return $doc().getElementById(id);
};
UI.alert=_alert;
UI.confirm=_confirm;
UI.prompt=_inputDialog;
UI.inputDialog=_inputDialog;
UI.yesNoCancel=_yesNoCancel;
UI.panel=_panel;
UI.playMessage=_playMessage;
var $ieVersionLt10=getIEVersionLt10();
function getIEVersionLt10(){
var _1=navigator.userAgent;
if((_1.indexOf("MSIE")!=-1)&&(_1.indexOf("MSIE 10")==-1)){
return true;
}else{
return false;
}
};
function getWebmailWindow(){
if(!UI._win){
UI._win=_2();
}
return UI._win;
function _3(w){
return w["webmailWindow"]===true?w:null;
};
function _2(){
try{
return _3(window)||_3(parent)||_3(parent.parent)||window;
}
catch(e){
return window;
}
};
};
function _txtMsgPrepare(_4){
return _4.text2HTML();
};
function _sysIcon(_5,_6){
return ["<table class=\"msg\" style=\"width: 100%;\"><tr><td width=\"50\" valign=\"top\"><i class=\"bico brig ",_6,"\"></i></td><td>",_5,"</td></tr></table>"].join("");
};
function _alert(_7,_8){
var _9=typeof _7=="string"?_7:_7.message;
_9=_8?_9:_txtMsgPrepare(_9);
var _a="alert";
if(_7.type&&_7.type==1){
_a="";
}
new UI.SysDialog({body:_sysIcon(_9,_a),action:typeof _7=="string"?null:_7.callback,onClose:_7.onClose,showMask:_7.showMask});
};
function _confirm(_b){
new UI.SysDialog({body:_sysIcon((_b.skipText2HTML?_b.message:_txtMsgPrepare(_b.message)),_b.icon||"confirm"),button:"OK_CANCEL",actions:[_b.yes,_b.no]});
};
后面还有 135 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
