<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">var webhost = "https://www.1566.cn";//璺ㄥ煙鐨勬椂鍊欓渶瑕�
var zt='',paytps='浠樿垂鍚庡彲澶嶅埗銆佷笅杞藉叏鏂�';
if($(".ztpage").length &gt; 0){//涓撻
    zt=1;
    paytps='浠樿垂鍚庡彲涓嬭浇鍏ㄦ枃';
    webhost=webhost+$(".ztpage").attr("path");
}
//jquery.cookie
(function (factory) {
	if (typeof define === 'function' &amp;&amp; define.amd) {
		// AMD
		define(['jquery'], factory);
	} else if (typeof exports === 'object') {
		// CommonJS
		factory(require('jquery'));
	} else {
		// Browser globals
		factory(jQuery);
	}
}(function ($) {

	var pluses = /\+/g;

	function encode(s) {
		return config.raw ? s : encodeURIComponent(s);
	}

	function decode(s) {
        s = s.replace("%", '');
		return config.raw ? s : decodeURIComponent(s);
	}

	function stringifyCookieValue(value) {
		return encode(config.json ? JSON.stringify(value) : String(value));
	}

	function parseCookieValue(s) {
		if (s.indexOf('"') === 0) {
			// This is a quoted cookie as according to RFC2068, unescape...
			s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
		}

		try {
			// Replace server-side written pluses with spaces.
			// If we can't decode the cookie, ignore it, it's unusable.
			// If we can't parse the cookie, ignore it, it's unusable.
			s = decodeURIComponent(s.replace(pluses, ' '));
			return config.json ? JSON.parse(s) : s;
		} catch(e) {}
	}

	function read(s, converter) {
		var value = config.raw ? s : parseCookieValue(s);
		return $.isFunction(converter) ? converter(value) : value;
	}

	var config = $.cookie = function (key, value, options) {

		// Write

		if (value !== undefined &amp;&amp; !$.isFunction(value)) {
			options = $.extend({}, config.defaults, options);

			if (typeof options.expires === 'number') {
				var days = options.expires, t = options.expires = new Date();
				t.setTime(+t + days * 864e+5);
			}

			return (document.cookie = [
				encode(key), '=', stringifyCookieValue(value),
				options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
				options.path    ? '; path=' + options.path : '',
				options.domain  ? '; domain=' + options.domain : '',
				options.secure  ? '; secure' : ''
			].join(''));
		}

		// Read

		var result = key ? undefined : {};

		// To prevent the for loop in the first place assign an empty array
		// in case there are no cookies at all. Also prevents odd result when
		// calling $.cookie().
		var cookies = document.cookie ? document.cookie.split('; ') : [];

		for (var i = 0, l = cookies.length; i &lt; l; i++) {
			var parts = cookies[i].split('=');
			var name = decode(parts.shift());
			var cookie = parts.join('=');

			if (key &amp;&amp; key === name) {
				// If second argument (value) is a function it's a converter...
				result = read(cookie, value);
				break;
			}

			// Prevent storing a cookie that we couldn't decode.
			if (!key &amp;&amp; (cookie = read(cookie)) !== undefined) {
				result[name] = cookie;
			}
		}

		return result;
	};

	config.defaults = {};

	$.removeCookie = function (key, options) {
		if ($.cookie(key) === undefined) {
			return false;
		}

		// Must not alter options, thus extending a fresh object...
		$.cookie(key, '', $.extend({}, options, { expires: -1 }));
		return !$.cookie(key);
	};

}));


var payed=0;
function gopay(data){
    let wordmoney = data.money;
    if(isModile()){//鎵嬫満绔�
        var paytype ='weixinh5';
    } else {
        
        var paytype ='weixin';
    }
    
    var htmlplay='&lt;div class="pupop" id="downwordpay"&gt;&lt;div class="copy_pay_tit"&gt;浠樿垂涓嬭浇&lt;/div&gt;&lt;div class="bd pays clearfix"&gt;&lt;p class="tps"&gt;'+paytps+'&lt;/p&gt;&lt;div class="red-pay"&gt;&lt;p&gt; 闄愭椂鐗逛环 &lt;em class="wordmoney"&gt;'+wordmoney+'&lt;/em&gt;鍏�&lt;span&gt;锛堟湰鏂囨墍鏈夌瘒鏁帮級&lt;/span&gt;&lt;/p&gt;&lt;div class="copy_buy"&gt;&lt;a href="javascript:;" class="onpay"&gt;鍦ㄧ嚎鏀粯&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="bd paye clearfix"&gt;&lt;div class="red-pay-hd clearfix"&gt;&lt;a class="on" href="javascript:;" data-id="weixin"&gt;浣跨敤寰俊鏀粯&lt;/a&gt;&lt;a href="javascript:;" class="alipay" data-id="alipay"&gt;鏀粯瀹濇敮浠�&lt;/a&gt;&lt;/div&gt;&lt;div class="pay_qrcode"&gt;&lt;/div&gt;&lt;ul class="red-pay-box"&gt;&lt;li class="wxpay on"&gt;&lt;p&gt;鎵竴鎵井淇℃敮浠�&lt;br /&gt;寰俊鏀粯:&lt;em class="wordmoney"&gt;'+wordmoney+'&lt;/em&gt;&lt;span&gt;锛堟湰鏂囨墍鏈夌瘒鏁帮級&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class="alipay"&gt;&lt;p&gt;鎵竴鎵敮浠樺疂鏀粯&lt;br /&gt;鏀粯瀹濇敮浠�:&lt;em class="wordmoney"&gt;'+wordmoney+'&lt;/em&gt;&lt;span&gt;锛堟湰鏂囨墍鏈夌瘒鏁帮級&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="desc"&gt;&lt;a href="javascript:;" class="copy_server"&gt;甯歌闂 - 鑱旂郴瀹㈡湇&lt;/a&gt;&lt;/div&gt;&lt;div class="downword"&gt;&lt;a href="javascript:;"&gt;绔嬪嵆涓嬭浇Word鏂囨。&lt;/a&gt;&lt;/div&gt;&lt;a href="javascript:;" class="close" data-id="3" target="_self"&gt;X&lt;/a&gt;&lt;/div&gt;';
    $("body").append(htmlplay);
    pupop('downwordpay');
    
}

$(document).on("click",".copy_buy .onpay",function(e){
        timeout = false; //鍚姩鍙婂叧闂寜閽�
        if(isModile()){//鎵嬫満绔�
            var paytype ='weixinh5';
        } else {
            $(".pays").hide();
            $(".paye").show();
            var paytype ='weixin';
        }
        setQrcodepay(paytype);
       var $wbRedPaperPayBtn = $(".red-pay-hd a").each(function(i, e) {
                   $(e).click(function() {
                       timeout = true;
                       var type = $(this).attr("data-id");
                       setQrcodepay(type);
                       timeout = false;
                       $($wbRedPaperPayBtn.removeClass("on")[i]).addClass("on");
                       $($(".red-pay-box li").removeClass("on")[i]).addClass("on");
                   });
        });
        
    });

function checkpay(t){
    var id = lskpa.infoid,classid = lskpa.classid,copy=t.attr("copy"),type=isModile();
    $.ajax({type : "get",async:false,url :webhost + "/e/extend/downword/",data:{"enews":"check","id":id,"classid":classid,"type":type},dataType : "jsonp",jsonp: "jsonpcallback",success : function(res){
    	if (res.status==1) {
            $.cookie('copy'+id+'_'+classid,'1',{path:'/'});
            if(copy==1){
                $(".button_download.word_download").click();
            } else{
                if(zt){//涓撻涓嬭浇
                    downtime(t,res.url);
                   //zturl=res.url;
                }else{
                    window.location.href=res.url;
                }
                //$('&lt;iframe style="display:none;"/&gt;').appendTo('html').attr('src',res.url);
            }
            return false;
    	} else if(res.status ==2){
            $("#downwordpay").remove();
            $(".mask").hide();
            alertBox({type:"mini",msg:res.message});
        } else{
            if(res.ddno != 0){
                $(".mask").attr("ddno",res.ddno);
            }
            gopay(res);
           
        }
    },error:function(){  
        
    }  
    });
}
function downtime(t,url){
   $(".down").after('&lt;div class="tips"&gt;鐢变簬鏂囦欢姣旇緝澶氾紝鍗佸嚑绉掑悗鍗冲彲涓嬭浇瀹屾垚&lt;/div&gt;');
     if($(".tips").length &gt; 0){
    
    $.ajax({type : "get",url :url,dataType : "jsonp",jsonp: "jsonpcallback",success : function(res){
         	if (res.status==1) {
            window.location.href=res.url;
            $('.tips').remove();
    	}
    },error:function(){

    }
    });
     }
}
if(typeof(ClipboardJS)=="function"){
    var clipboard = new ClipboardJS('.copyall');
    clipboard.on('success', function(e) {
        if(iscopyid()){
            alertBox({type:"mini",msg:"澶嶅埗鎴愬姛"});
        }
        e.clearSelection();
    });
    clipboard.on('error', function(e) {
        alertBox({type:"mini",msg:"澶嶅埗澶辫触锛屾祻瑙堝櫒琚鐢ㄥ鍒躲€傝鑱旂郴绔欑偣"});
        e.clearSelection();
    });
}
function iscopyid(){
    var id = lskpa.infoid,classid = lskpa.classid;
    if($.cookie('copy'+id+'_'+classid) ) {
        return true;
    }
    return false;
}
$(function () {
if($(".article-content").length &gt; 0){
   var ua = navigator.userAgent;
   if(isModile() &amp;&amp; ua.indexOf('baiduboxapp') &gt; 0){
        $(".down-tips p").hide();
        $(".down-tips .baiduie").show();
   }
    if(iscopyid()){
        $("#f-bottom").show();
        $(".box.one").addClass("fixed2");
        $(".box.mtips").addClass("mtips2");
    }
    
}

$(document).on("click",".button_download.word_download",function(e){
    var t = $(this);
    $(".button_download.word_download").click();
    $(".button_download.word_download").click();
    checkpay(t);
});
//棰勮椤典笅杞�
$(document).on("click",".down-art-title .word_download,.f_download",function(e){
    var t = $(this);
    checkpay(t);
});


$(document).on("click",".pupop .close",function(e){
		var $id=$(this).attr("data-id");
		if($id){
			if($id==2){//澶嶅埗鍏抽棴鏀粯
				$("li.wxpay .qrcode,li.alipay .qrcode").attr("src", "");
			}
            if($id==3){//涓嬭浇word
            	$("li.wxpay .qrcode,li.alipay .qrcode").attr("src", "");
                $(".mask").fadeOut(100);
                //$(".mask").remove()
                timeout=true;
            }
            if($id==1){
                $(".mask2").remove()
            }
			$(this).parent(".pupop").remove()
		}else{
			$(".mask").fadeOut(100);
           // $(".mask").remove()
		}
		$(this).parent(".pupop").fadeOut(100);
		
});

var downhelphtml='&lt;div class="pupop" id="copy_help"&gt;&lt;h2&gt;甯歌闂&lt;/h2&gt;&lt;div class="bd"&gt;&lt;ul&gt;&lt;li&gt;&lt;h3&gt;1.鏀粯鎴愬姛鍚庯紝鎬庝箞涓嬭浇锛�&lt;/h3&gt;&lt;p&gt;浜诧紝鎮ㄥソ锛佷粯娆炬垚鍔熷悗锛屾棤闇€楠岃瘉鐮侊紝鐩存帴涓嬭浇鍝︼紒&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;h3&gt;2.鏀粯鎴愬姛鍚庯紝涓轰綍鏃犳硶涓嬭浇鍐呭锛�&lt;/h3&gt;&lt;p&gt;浜诧紝璇峰皾璇曞埛鏂颁竴涓嬬綉椤碉紙鎸夐敭鐩楩5閿級锛屽啀杩涜涓嬭浇銆�&lt;/p&gt;&lt;/li&gt;&lt;li&gt;  &lt;h3&gt;3.浠樿垂鍚庤兘鍚︽洿鎹㈡祻瑙堝櫒銆佹洿鎹㈢數鑴戣繘琛屼笅杞斤紵&lt;/h3&gt;&lt;p&gt;浜诧紝鏇存崲娴忚鍣ㄦ垨鐢佃剳浼氬鑷翠笅杞戒笉鎴愬姛鍝︼紒璇风‘淇濅粯璐规椂鐨勬祻瑙堝櫒鍙婄數鑴戝拰涓嬭浇鏂囩珷鏃舵墍鐢ㄧ殑娴忚鍣ㄦ槸涓€鏍风殑銆�&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;h3&gt;4.濡備綍鑱旂郴瀹㈡湇锛�&lt;/h3&gt;  &lt;p&gt;楹荤儲鎮ㄦ坊鍔犲鏈峇Q锛�&lt;a href="http://wpa.qq.com/msgrd?v=3&amp;uin=1693673727&amp;site=qq&amp;menu=yes"&gt;1693673727&lt;/a&gt; 锛岀暀瑷€鈥滀粯娆惧悗鏃犳硶涓嬭浇鏂囩珷鈥濓紝骞跺彂閫佺浉鍏充粯娆炬埅鍥撅紝瀹㈡湇灏嗕负鎮ㄥ鐞嗐€傚鏈嶅湪绾挎椂闂翠负鍛ㄤ竴鑷冲懆鍏細9:00-12:00 14:00-18:00&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;a href="javascript:;" class="close" data-id="1" target="_self"&gt;X&lt;/a&gt;&lt;/div&gt;&lt;div class="mask mask2"&gt;&lt;/div&gt;';
$(document).on("click",".copy_server",function(e){
    	$("body").append(downhelphtml);
    	pupop('copy_help');
});

//闀挎寜寮€濮�
 var _time = null;
            window.ontouchstart = function() {
                clearRange();
                clearTimeout(_time);
                _time = setTimeout(function() {
                   console.info("long press");
                    clearRange();
                    $(this).downinfo();
                }, 400)
            };
            window.ontouchmove = function() {
                clearTimeout(_time)
            };
            window.ontouchend = function() {
                clearTimeout(_time)
            };

    var downurl = webhost + '/down/?classid='+lskpa.classid+'&amp;id='+lskpa.infoid;
    $(".download_card_btn_lb,.download_card").wrapInner('&lt;a href="'+downurl+'" target="_blank"&gt;&lt;/a&gt;');
    $(".afbox .button_download").eq(0).attr("href",downurl).attr("target","_blank");
    $(".afbox .button_download").eq(1).attr("href",downurl).attr("target","_blank");
    $(".copy-fullpage").attr("href",downurl).attr("target","_blank");
    
    //$(".afbox .button_download").eq(1).addClass("word_download").attr("copy",1);
    //闀挎寜缁撴潫
    document.body.oncopy=function(){
	   if(!iscopyid()){
           if($("#downwordpay").length == 0 ){
               var t = $('.word_download');
               checkpay(t);
             //  window.location.href=downurl;
           }
	       return false;
	   }
    };
_time = null,
window.ontouchstart = function() {
    _time = setTimeout(function() {
        console.log(iscopyid());
     if(!iscopyid()){
         if($("#downwordpay").length == 0 ){
             var t = $('.word_download');
             checkpay(t);
             //window.location.href=downurl;
         }
         return false;
     }
    }, 400)
}, window.ontouchmove = function() {
    clearTimeout(_time);
}, window.ontouchend = function() {
   clearTimeout(_time);
}
    $(document).on('click','.hcontent',function (e) {
        clearRange();
	});
	if(isModile()){
	    var element=$(document);
            if (typeof(element.onselectstart) != "undefined") {        
            // IE涓嬬姝㈠厓绱犺閫夊彇        
            element.onselectstart = new Function("return false");        
        } else {
            // firefox涓嬬姝㈠厓绱犺閫夊彇鐨勫彉閫氬姙娉�        
            element.onmousedown = new Function("return false");        
            element.onmouseup = new Function("return true");        
        } 
	}
    let navurl = window.location.href;
    if(navurl.indexOf("/down/") != -1){
        //棰勮椤靛姞杞�
        var isyl=1;
        var lefttop='';
    } else if( zt == 1){ //涓撻
        var lefttop='';
        var isyl=2;
    } else {
        var isyl=0,title = $("h1.title").text(),
        lefttop ='&lt;div class="fixed_item"&gt;&lt;a class="fixed_download" href="'+downurl+'" target="_blank"&gt;&lt;em&gt;&lt;/em&gt;鐐瑰嚮涓嬭浇鏈枃鏂囨。&lt;/a&gt;&lt;/div&gt;&lt;div class="fixed_top"&gt;&lt;div&gt;&lt;b&gt;'+ title +'&lt;/b&gt;&lt;div class="fixed_top_search"&gt;&lt;form action="/e/search/index.php" method="post" name="searchform" id="searchform"&gt;&lt;input class="search_text_top" type="text" name="keyboard" value="" placeholder="璇疯緭鍏ュ叧閿瘝" &gt;&lt;input type="submit" value="鎼滅储涓€涓�" class="search_btn"/&gt;&lt;input type="hidden" name="show" value="title" /&gt;&lt;input type="hidden" name="tempid" value="1" /&gt;&lt;input type="hidden" name="tbname" value="news" /&gt;&lt;/form&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="'+downurl+'" class="copy-fullpage" copy="1"&gt;澶嶅埗鍏ㄦ枃&lt;/a&gt;&lt;a href="'+downurl+'" target="_blank" class="dl-link"&gt;&lt;em&gt;&lt;/em&gt;涓嬭浇鏈枃妗�&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;';
    }
	$("body").append(lefttop + '&lt;div class="mask"&gt;&lt;/div&gt;');
    //&lt;div class="mask"&gt;&lt;/div&gt;&lt;div class="fixed_top"&gt;&lt;div&gt;&lt;b&gt;'+ title +'&lt;/b&gt;&lt;p&gt;&lt;a href="javascript:;" class="copy-fullpage"&gt;澶嶅埗鍏ㄦ枃&lt;/a&gt;&lt;a href="'+downurl+'" target="_blank" class="dl-link"&gt;涓嬭浇鏈枃妗�&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
    if($(".box.one").length &gt; 0){
        var boxone = $(".box.one"),yltop = boxone.offset().top
    }
    $(window).scroll(function(){
        let $scroll=$(window).scrollTop();
        if(isyl ==0 ){
           let ele =isModile()?$(".hcontent"):$(".wrapper");
           etop = ele.offset().top;
           if ($scroll&gt;etop) {
            $(".fixed_top").addClass("in");
           }else{
            $(".fixed_top").removeClass("in");
           }
           if(isModile()){
               var winHeight = ele.height()+100;
               if ($scroll &gt;= winHeight ) {
                   $(".fixed_top").removeClass("in");
                }
           }
       }
       if(isyl == 1){//棰勮椤�
           // console.log($scroll,yltop)
            if ($scroll&gt;yltop) {
                boxone.addClass("fixed");
            }else{
                boxone.removeClass("fixed");
            }

       }
    });
    
});

function clearRange(){
    
}

function setQrcodepay (type) {
    var ddno = $(".mask").attr("ddno");
    let id = lskpa.infoid,classid = lskpa.classid;
    $.ajax({type : "get",async:false,url : webhost + "/e/extend/downword/",data:{"enews":"pay","ddno":ddno,"type":type,"id":id,"classid":classid},dataType : "jsonp",jsonp: "jsonpcallback",success : function(res){
        if (res.status==1) {
            if(isModile()){
                $(".copy_buy").html('&lt;a href="'+res.gorul+'" class="gowx" target="_blank"&gt;鍦ㄧ嚎鏀粯&lt;/a&gt;');
               // $(".copy_buy .onpay").attr("href",res.gorul);
                window.open(res.gorul, "_blank");
               // $('.gowx').click();
            } else {
                $(".pay_qrcode").html('&lt;img src="'+res.payurl+'" /&gt;');
            }
            $(".mask").attr("ddno",res.ddno);
             ddno = res.ddno;
        }
        }
    });
        times();
        function times(){
            if(timeout) return;
            queryorderword(ddno);
            setTimeout(times,1500); //time鏄寚鏈韩,寤舵椂閫掑綊璋冪敤鑷繁,100涓洪棿闅旇皟鐢ㄦ椂闂�,鍗曚綅姣
        }
}

function pupop(id){
	$("#" + id + ",.mask").fadeIn(100);
}

function queryorderword(ddno){
    $.ajax({type : "get",async:false,url : webhost + "/e/extend/downword/",data:{"enews":"payorder","ddno":ddno},dataType : "jsonp",jsonp: "jsonpcallback",success : function(res){
        if (res.status==1) {
			timeout = true;
            var id = lskpa.infoid,classid = lskpa.classid;
            $.cookie(zt+'copy'+id+'_'+classid,'1',{path:'/'});
            $("#downwordpay .red-pay-hd,#downwordpay .red-pay-box,#downwordpay .desc,.pay_qrcode,.red-pay").hide();
            $("#downwordpay .downword,#f-bottom").show();
            if(zt==1){
                $("#downwordpay .downword").append('&lt;div class="tips" style="display:block;"&gt;鐢变簬鏂囦欢姣旇緝澶氾紝鍗佸嚑绉掑悗鍗冲彲涓嬭浇瀹屾垚&lt;/div&gt;');
                $.ajax({type : "get",url :res.url,dataType : "jsonp",jsonp: "jsonpcallback",success : function(data){
                     	if (data.status==1) {
                        window.location.href=data.url;
                        $('.tips').remove();
                        $("#downwordpay .downword a").attr("href",data.url);
                	}
                },error:function(){
                
                }
                });
                return false;
            }
            if(res.url){
                window.location.href=res.url;
                $("#downwordpay .downword a").attr("href",res.url);
               // console.log(111);
                //$('&lt;iframe style="display:none;"/&gt;').appendTo('html').attr('src',res.url);
            }
        }
        }
    });
}

function isModile(){
    if ($(window).width() &lt;= 768) {
    	return true;
    }
    return false;
}


(function(a,b,c){if(typeof module!=="undefined"&amp;&amp;module.exports){module.exports=b(a,c)}else{if(typeof define==="function"&amp;&amp;define.amd){define(b(a,c))}else{a.AlertBox=b.call(a,a,c)}}})(this,function(b,g){var e=0;var a="onorientationchange" in b?"orientationchange":"resize";var f=null;function c(d){if(!(this instanceof c)){return new c(d).init()}this.opts=d||{};this.uuid=e;this.type=this.opts.type||"doubleBtn";this.alertType=this.opts.alertType||"";this.alertCls=this.opts.alertCls||"";this.title=this.opts.title||"";this.msg=this.opts.msg||"";this.cancelText=this.opts.cancelText||"鍙栨秷";this.confirmText=this.opts.confirmText||"纭畾";this.cancel=this.opts.cancel||"";this.confirm=this.opts.confirm||"";this.callback=this.opts.callback||"";this.delay=this.opts.delay||2000}c.prototype={constructor:c,getEl:function(h,d){return h.querySelector(d)},init:function(){var d=this;e++;d.setStyle();d.addAlertBox();d.type=="mini"?d.minEvent():d.alertEvent();d.onresize();return d},addAlertBox:function(){var d=this,h=d.getPos();d.alertType=="fixed"?d.getFixedMask():d.getMask();d.alertType=="fixed"?d.getEl(g,"#alertMask_"+d.uuid).insertAdjacentHTML("beforeend",d.getHtml()):d.getEl(g,"body").insertAdjacentHTML("beforeend",d.getHtml());d.alertBox=d.getEl(g,"#alertBox_"+d.uuid);if(d.alertType=="fixed"){d.alertBox.style.cssText="width:auto;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);position:absolute;left:50%;top:50%;"}else{d.alertBox.style.cssText="width:"+parseInt(h.width-(2*25))+"px;left:25px;top:"+parseInt(h.sTop+b.innerHeight/2-d.alertBox.offsetHeight/2)+"px;"}d.callback&amp;&amp;typeof d.callback=="function"&amp;&amp;d.type!="mini"&amp;&amp;d.callback()},setStyle:function(){var h=this,i=g.createElement("style"),d=".alert-box{position:absolute;left:0;top:0;border-radius:0.2rem;background:#FFF;-webkit-box-sizing:border-box;z-index:100;font-size:1rem;}.alert-msg{padding:0.4rem 0.6rem 0.6rem;text-align:center;line-height:1.8;word-break:break-all;}.alert-title{padding:0.6rem 0.6rem 0;text-align:center;}.alert-btn{display:-webkit-flex !important;display:-webkit-box;border-top:1px solid #DCDCDC;}.alert-btn a{display:block;-webkit-flex:1 !important;-webkit-box-flex:1;height:1.68rem;line-height:1.68rem;text-align:center;}.alert-btn a.alert-confirm{border-left:1px solid #DCDCDC;color:#EDA200;}.alert-btn a.alert-confirm.single{border-left:none;}.alert-mini-box{border-radius:0.2rem;background:rgba(0,0,0,.7);color:#fff;}";i.type="text/css";i.innerText=d;h.getEl(g,"head").appendChild(i)},getPos:function(){var j=g.documentElement.offsetWidth||g.body.offsetWidth,i=g.documentElement.offsetHeight||g.body.offsetHeight,d=g.documentElement.scrollTop||g.body.scrollTop;if(b.innerHeight&gt;i){i=b.innerHeight}return{width:j,height:i,sTop:d}},getHtml:function(){var d=this,h="";if(d.type!="mini"){h+='&lt;div class="alert-box '+d.alertCls+'" id="alertBox_'+d.uuid+'"&gt;&lt;div class="alert-title"&gt;'+d.title+'&lt;/div&gt;&lt;div class="alert-msg"&gt;'+d.msg+'&lt;/div&gt;&lt;div class="alert-btn"&gt;';switch(d.type){case"doubleBtn":h+='&lt;a href="javascript:;" class="alert-cancel mr10"&gt;'+d.cancelText+'&lt;/a&gt;&lt;a href="javascript:;" class="alert-confirm"&gt;'+d.confirmText+"&lt;/a&gt;";break;case"onceCancel":h+='&lt;a href="javascript:;" class="alert-cancel"&gt;'+d.cancelText+"&lt;/a&gt;";break;case"onceConfirm":h+='&lt;a href="javascript:;" class="alert-confirm single"&gt;'+d.confirmText+"&lt;/a&gt;";break}h+="&lt;/div&gt;&lt;/div&gt;"}else{h+='&lt;div class="alert-box alert-mini-box '+d.alertCls+'"  id="alertBox_'+d.uuid+'"&gt;&lt;div class="alert-msg"&gt;'+d.msg+"&lt;/div&gt;&lt;/div&gt;"}return h},getMask:function(){var h=this,i=h.getPos(),d=g.createElement("div");d.id="alertMask_"+h.uuid;h.getEl(g,"body").appendChild(d);d.style.cssText="position:absolute;left:0;top:0;width:"+i.width+"px;height:"+i.height+"px;background:rgba(0,0,0,0.3);z-index:99";h.type=="mini"&amp;&amp;(d.style.backgroundColor="rgba(255, 255, 255, 0)")},getFixedMask:function(){var h=this,d=g.createElement("div");d.id="alertMask_"+h.uuid;h.getEl(g,"body").appendChild(d);d.style.cssText="position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.3);z-index:99;"},minEvent:function(){var d=this;setTimeout(function(){d.remove(d.getEl(g,"#alertMask_"+d.uuid));d.callback&amp;&amp;typeof d.callback=="function"&amp;&amp;d.callback()},d.delay)},alertEvent:function(){var h=this;if(h.alertBox){var i=h.getEl(h.alertBox,".alert-cancel"),d=h.getEl(h.alertBox,".alert-confirm");i&amp;&amp;h.reset(i,h.cancel);d&amp;&amp;h.reset(d,h.confirm)}},reset:function(i,h){var d=this;i.onclick=function(){var j=h&amp;&amp;typeof h=="function"&amp;&amp;h(this);if(j===false){return}d.alertType!="fixed"&amp;&amp;d.remove(d.alertBox);d.remove(d.getEl(g,"#alertMask_"+d.uuid));b.removeEventListener(a,f,false);f=null}},remove:function(d){this.getEl(g,"body").removeChild(d)},destroy:function(){this.remove(this.alertBox);this.remove(this.getEl(g,"#alertMask_"+this.uuid))},onresize:function(){var d=this;f=function(){d.resizeEvent(d)};b.addEventListener(a,f,false)},resizeEvent:function(i){var h=g.getElementById("alertMask_"+i.uuid),d=g.getElementById("alertBox_"+i.uuid),j;if(d&amp;&amp;h){clearTimeout(j);j=setTimeout(function(){var k=i.getPos();h.style.height=k.height+"px";h.style.width=k.width+"px";d.style.width=parseInt(k.width-(2*25))+"px";d.style.top=parseInt(k.sTop+b.innerHeight/2-i.alertBox.offsetHeight/2)+"px"},150)}}};return c},document);


function alertBox(a) {
	var b = {
		type: "mini",
		msg: "鎶ラ敊绀鸿寖",
		alertType: "fixed"
	};
	$.extend(b, a);
	AlertBox(b)
}</pre></body></html>