var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
(function(window){
/*
jDialog($content);
jDialog($content,{
title : '',
init : function(dialog){}
})
*/
var jDialog = function(contentEl, props){
if(this instanceof jDialog){
this.init.call(this,contentEl, props);
}else{
return new jDialog(contentEl, props);
}
};
jDialog.prototype = {
init : function(contentEl, props){
this.props = props || {};
this.panel = $(contentEl);
},
lazyInit : function(){
if(this._inited){
return;
}
var that = this,
props = this.props,
dialog =
this.dialog = $(jDialog.popupTmpl).appendTo(document.body);
this.header = dialog.find('.jdialog-header');
this.content = dialog.find('.jdialog-content');
this.close = dialog.find('.jdialog-close');
dialog
.delegate('.jdialog-cancel','click',function(){
if( (props.close && props.close('close')) === false ){
return;
};
that.hide();
});
dialog.find('.jdialog-title').html(props.title);
dialog.find('.jdialog-content').append(this.panel);
this.panel.eq(0).show();
props.init && props.init.call(this,this.dialog);
this._inited = true;
},
show : function(){
this.lazyInit();
this.props.onshow && this.props.onshow(this.dialog);
jDialog.dialogStack.push(this);
this.dialog.show().center().css({
zIndex : ++jDialog.zIndex
});
jMask.show();
$('select')
},
hide : function(){
this.onhide && this.onhide(this.dialog);
jDialog.dialogStack.pop();
this.dialog.hide();
jMask.hide();
},
reset : function(){
this.dialog.center()
}
}
jDialog.alertTmpl =
'
' +
'' +
'
' +
'
' +
'' +
'
',
jDialog.popupTmpl =
'',
jDialog.dialogMask =
'';
jDialog.zIndex = 1000;
jDialog.dialogStack = {
stack : [],
push : function(obj){
if(this.last()===obj){
return;
}
this.stack.push(obj);
},
pop : function(){
this.stack.pop();
},
isEmpty : function(){
return this.stack.length === 0;
},
last : function(){
if(this.isEmpty()){
return null;
}
return this.stack[this.stack.length-1];
}
}
jMask = {
show : function(){
if(jDialog.dialogStack.isEmpty()){
return;
}
var last = jDialog.dialogStack.last();
var zIndex = (last.dialog.css('z-index')>>>0) - 1;
var maskEl = this.maskEl,
html = document.documentElement,
body = document.body;
if(!maskEl){
this.maskEl = maskEl = $(jDialog.dialogMask).appendTo(body);
}
this.maskEl.css({
width : '100%',
height : $(document).height(),
zIndex : zIndex,
display: 'block',
opacity: 0.5
})
},
hide : function(){
var maskEl = this.maskEl;
if(jDialog.dialogStack.isEmpty()){
maskEl.hide()
return;
}
var last = jDialog.dialogStack.last();
var zIndex = (last.dialog.css('z-index')>>>0) - 1;
maskEl.css({
zIndex : zIndex
})
}
}
/*
(content)
(title,content)
(content,callback)
(content,{done,close})
(title,content,callback)
(title,content,{done,close})
*/
jDialog.alert = function(title,content,callback){
var argus = arguments;
switch(argus.length){
case 1:
content = argus[0];
title = '';
callback = null;
break;
case 2:
if(typeof title == 'string' && typeof content == 'string'){
callback = null;
}else if(typeof title == 'string' &&
(typeof content == 'function'||typeof content == 'object')){
callback = content;
content = title;
title = '';
}
break;
}
title = title || '信息提示';
callback = callback || {};
content = $.replacer('{@content}
',{content:content});
if(callback&&typeof callback=='function'){
callback = {
done : callback,
close : callback
}
}
jDialog.tip(title,content,callback);
}
jDialog.tip = function(title,content,callback){
jDialog.dialogStack.push(this);
var that = this;
var alertTip = this.dialog;
if(!alertTip){
this.dialog = alertTip = $(jDialog.alertTmpl).appendTo(document.body);
}
alertTip
.undelegate()
.delegate('.jdialog-cancel','click',function(e){
e.preventDefault();
that.needHide = true;
if( (callback.close && callback.close('close')) === false ){
return;
};
jDialog.hideTip();
})
.delegate('.jdialog-done','click',function(e){
e.preventDefault();
if( (callback.done && callback.done('done')) === false ){
return;
};
jDialog.hideTip();
});
alertTip.find('.jdialog-title').html(title);
alertTip.find('.jdialog-content').html(content);
alertTip.show().center().css({
zIndex : ++jDialog.zIndex
});
jMask.show();
}
jDialog.hideTip = function(){
if(jDialog.dialog){
jDialog.dialogStack.pop();
jDialog.dialog.hide();
jMask.hide();
}
}
window.jDialog = jDialog;
}(window));
}
/*
FILE ARCHIVED ON 23:01:45 May 18, 2014 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 04:34:33 Oct 10, 2025.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/*
playback timings (ms):
captures_list: 2.57
exclusion.robots: 0.035
exclusion.robots.policy: 0.02
esindex: 0.018
cdx.remote: 304.989
LoadShardBlock: 419.84 (3)
PetaboxLoader3.datanode: 603.416 (4)
load_resource: 517.391
PetaboxLoader3.resolve: 262.305
*/