!function(o,l){var r,a,s="createElement",g="getElementsByTagName",b="length",E="style",d="title",y="undefined",k="setAttribute",w="getAttribute",x=null,A="__svgInject",C="--inject-",S=new RegExp(C+"\\d+","g"),I="LOAD_FAIL",t="SVG_NOT_SUPPORTED",L="SVG_INVALID",v=["src","alt","onload","onerror"],j=l[s]("a"),G=typeof SVGRect!=y,f={useCache:!0,copyAttributes:!0,makeIdsUnique:!0},N={clipPath:["clip-path"],"color-profile":x,cursor:x,filter:x,linearGradient:["fill","stroke"],marker:["marker", "marker-end","marker-mid","marker-start"],mask:x,pattern:["fill","stroke"],radialGradient:["fill","stroke"]},u=1,c=2,O=1;function T(e){return(r=r||new XMLSerializer).serializeToString(e)}function P(e,r){var t,n,i,o,a=C+O++,f=/url\("?#([a-zA-Z][\w:.-]*)"?\)/g,u=e.querySelectorAll("[id]"),c=r?[]:x,l={},s=[],d=!1;if(u[b]){for(i=0;i= 0 ? e : e + r + ','; return $(o).not('[exec*=",' + r + ',"]').attr({exec: e}); } console.log('jext.js 寮€鍙戠増 ' + JextVersion); // 棰滆壊娉ㄥ唽琛 // 涓嶈兘鍐嶆敼浜嗭紝鍚﹀垯浼氬嚭鐜颁竴浜涙晥鏋滃啿绐 var colorRegistry = { co: 'color', bo: 'border-color', border: 'border-color', ba: 'background-color', bg: 'background', opa: 'opacity', op: 'opacity' } // jq鎵╁睍 $.extend({ // 淇敼閾炬帴浣嗕笉璺宠浆 // 鍙€傜敤浜 H5 href: function(url, json, fn, dataType) { if (typeof(window.history.replaceState) === 'function') { if (typeof(fn) == 'function') $.get(url, json, function(data) { window.history.replaceState(null, '', url); fn(data); }, dataType); } else { location.href = url; } }, // H5鍒ゆ柇 h5: function() { var el=document.createElement('canvas'); return !!(el.getContext && el.getContext('2d')); }, // ie鍒ゆ柇 ie: function() { var us = navigator.userAgent; return (us.indexOf('compatible') > -1 && us.indexOf("MSIE") > -1) || (us.indexOf('Trident') > -1 && us.indexOf("rv:11.0") > -1) || us.indexOf("Edge") > -1; }, // json 杞崲 json: function(str) { if (!str || str == 'undefined') return {}; if (typeof(str) == 'string') { if (str.search(/^[\{\[]([\s\S]*)[\}\]]$/)<0) return {}; str = str.replace(/([^\\])?\\'/g, '$1\''); var un = [ ['\n','\r','\t',' '], ['`n`','`r`','`t`','`u`'] ]; function s(a){ for (var v in a) if (typeof(a[v])=='string') a[v] = $.re(un[1], un[0], a[v]); else s(a[v]); } var nr=str.search(new RegExp('['+un[0].join('')+']'))>=0; // eval("var nr=str.search(/["+un[0].join('')+"]/)>=0;"); if (nr) str = $.re(un[0], un[1], str); str = str.replace(/(^\{|,|:)([`nrtu]+)(")/g,"$1$3").replace(/(")([`nrtu]+)(\}$)/g,"$1$3"); str = $.parseJSON(str); if (nr) s(str); return str; } else { return JSON.stringify(str); } }, re: function(a,b,c){for(var i in a)c=c.replace(new RegExp(a[i], 'g'), b[i]);return c;}, // cookie 淇濆瓨涓庤鍙 // $.cookie('鍚嶇О', '鍊?, '鏃堕棿') 杩欎釜鏄繚瀛 // $.cookie('鍚嶇О') 杩欎釜鏄鍙 iscookie: window.navigator.cookieEnabled, cookie: function(n, v, s, d, e) { if (v) { s=parseInt(s)||1; e=new Date(); e.setTime(e.getTime() + s*1000); document.cookie = n + "="+ escape (v) + ";expires=" + e.toGMTString() + "; path=/"; } else { var arr,reg=new RegExp("(^| )"+n+"=([^;]*)(;|$)"); if (arr=document.cookie.match(reg)) return unescape(arr[2]); else return ''; } }, token: function(fn) { $.get(jextpath+'php/vcode/id.php',{VTOKEN:VTOKEN(),REFERERID:REFERERID},function(C){fn(C)}); }, cca: function(url, len) { url = location.href.replace(/[\/\\]/g, 'JZ').toUpperCase().replace(/[^A-Z]/g,''); len = url.length; return url.charCodeAt(len%5)^url.charCodeAt(len%3)^url.charCodeAt(len%8); }, xy: function(e, fn) { var x = y = 0; var w = jQ(window).width(); var h = jQ(window).height(); if (IFRAME) { x = IFRAME.getBoundingClientRect().left; y = IFRAME.getBoundingClientRect().top; } if (e) { x += e.clientX || e.originalEvent.changedTouches[0].clientX; y += e.clientY || e.originalEvent.changedTouches[0].clientY; } if (typeof(fn) == 'function') { return fn(x, y, w, h); } return [x, y]; }, // 鍒ゆ柇绉诲姩绔 mobile: function() { var a = navigator.userAgent.toLowerCase(), b = a.match(/ipad/) == 'ipad', c = a.match(/iphone os/) == 'iphone os', d = a.match(/midp/) == 'midp', e = a.match(/rv:1.2.3.4/) == 'rv:1.2.3.4', f = a.match(/ucweb/) == 'ucweb', g = a.match(/android/) == 'android', h = a.match(/windows ce/) == 'windows ce', i = a.match(/windows mobile/) == 'windows mobile'; return b || c || d || e || f || g || h || i; }, // 閫氳繃瀛楃涓叉墽琛屽嚱鏁 eval: function(ss, a, b, c, d, e, f, g) { if (!ss) { return; } var aa = ss.split(/;|,|锛泑锛?), rr, obj = a; for(var kk in aa) { rr = aa[kk].match(/\((.*?)\)/); ss = aa[kk].replace(/\((.*?)\)/g, '').split('.'); var i = 0, ww = window; for(var ii in ss) { if (ss[ii]=='WP') { ww=WP; continue; } if (typeof(ww[ss[ii]]) == 'object') { ww = ww[ss[ii]]; if (i == 0) { a = ww; } i++; } else if (typeof(ww[ss[ii]]) == 'function') { if (rr && rr[1]) { ww[ss[ii]].call(a ? a : window, rr[1] == 'this' ? obj : rr[1], b, c, d, e, f, g); } else { ww[ss[ii]].call(a ? a : window, b, c, d, e, f, g); } } else { break; } } } }, // 鍓垏鍥剧墖 cropper: function(v) { if ($.isFunction($.fn.cropper)) { cropperDoIt(v); } else if (window.imageCropperInc != 1) { window.imageCropperInc=1; var lo = $.alert('loading'); $.include(jextpath + 'web/cropper/cropper.min.css'); $.include(jextpath + 'web/cropper/cropper.min.js'); $.include(jextpath + 'web/cropper/do.it.js', function() { lo.remove(function() { cropperDoIt(v) }); }); } }, // 瀹氭椂鎵ц鎵€鏈夋晥鏋滃嚱鏁 all: function(t) { // 鏌ョ湅鍝簺閾炬帴鍔犺浇閿欒 // console.log(JsCssLoad); if (JsCssLoad[0] == JsCssLoad[1]) { JsCssLoad[2] = 1; $('body').addClass('is_load_over'); } for(var i in JEXTFN) { if (typeof(JEXTFN[i]) == 'function') { JEXTFN[i](); } } clearTimeout(window.alltimeout); window.alltimeout = setTimeout(function() { $.all(1) }, 600); }, // 寮傛鍔犺浇 async: function (type, url, data, fn, dataType1, dataType2) { var error='', dataType=dataType2; if (typeof(dataType1)=='function') error=dataType1; else dataType=dataType1; return $.ajax({ url: url, type: type, data: data, cache: false, async: true, dataType: dataType || 'html', success: function (data) { if (fn) fn(data); }, error: function (a) { if (error) error(a); } }); }, // 瀵煎叆鏂囦欢 jxinclude: function(src, bools, callback) { if (bools && !JsCssLink[src]) { $.include(src, callback); } }, include: function(src, callback) { if (JsCssLink[src]) { if (typeof(callback) == 'function') callback(); return false; } JsCssLoad[2] = 0; JsCssLink[src] = 1; var css = src.indexOf('.css') > 0; var tags = css ? 'link' : 'script'; var type = css ? 'text/css' : 'text/javascript'; var link = css ? 'href' : 'src'; if (src.search(/^(https?:|\/\/)/)>=0 && src.indexOf(location.host)<0) { JsCssLoad[3]++; } else if (src.indexOf('?')<0 && (src.search(/web\/(laydate|ace)\//)<0 || css)) { src = src.replace(jextpath, ''); if (css) { JsCssLinks[0] += src+','; } else { JsCssLinks[1] += src+','; } if (typeof(callback) == 'function') JsCssLinks[2][src] = callback; if (JsCssLinks[1] && JsCssLinks[1].match(/,/g).length > 11) { $.include(jextpath + 'php/inc.js.php?js=' + JsCssLinks[1]); JsCssLinks[1] = ''; } clearTimeout(JsCssLinks[3]); JsCssLinks[3] = setTimeout(function () { if (JsCssLinks[0]) $.include(jextpath + 'php/inc.css.php?cs=' + JsCssLinks[0], 1); if (JsCssLinks[1]) $.include(jextpath + 'php/inc.js.php?js=' + JsCssLinks[1]); JsCssLinks[0] = JsCssLinks[1] = ''; }, 90); return false; } JsCssLoad[0]++; src += (src.indexOf('?')>0?'&':'?') + 'vn=' + JextVersion; var s = document.createElement(tags); s.type = type; s.setAttribute(link, src); if (css) s.rel = 'stylesheet'; if (document.documentMode == 10 || document.documentMode == 9) { s.onerror = s.onload = loaded; } else { s.onreadystatechange = ready; s.onerror = s.onload = loaded; } function ready () { if (!s.readyState || s.readyState == 'loaded' || s.readyState == 'complete') loaded(); } function loaded () { if (typeof(callback) == 'function') callback(); $.all(); if (JsCssLink[src]==2) { return false; } else { JsCssLink[src] = 2; } if (src.indexOf('?')>0) { var sss = src.replace(/^.*(js|cs)=([^&]*),(&.*|$)/, '$2').split(/,/); for (var i in sss) { if (!JsCssLinks[2][sss[i]]) continue; JsCssLinks[2][sss[i]](); delete(JsCssLinks[2][sss[i]]); } } JsCssLoad[1]++; } // document.getElementsByTagName('head')[0].appendChild(s); if (css) { $.async('GET', src, {}, function (data) { $('[alertstyle]').append(data); loaded(); }); } else { document.getElementsByTagName('head')[0].appendChild(s); } } }); $.fn.extend({ // 榧犳爣鍙抽敭灞曠ず鑿滃崟 // $('.title').menu('type',function() {}); menu: function(type, fn) { if ($('[src$="/web/contextmenu.js"]').size()==0) { $.include(jextpath + 'web/contextmenu.js'); } this.mouseup(function(e) { if (e.which==3) { if (typeof(jqcontextmenu)=='object') jqcontextmenu.a($(this), e, type, fn); e.stopPropagation(); } }); return this; }, // 榧犳爣绉荤殑璺濈 // $('.title').move('.div',{}); move: function(a, v) { var thi = this; if ($.isFunction($.fn.moveDIV)) { thi.each(function(){ $(this).moveDIV(a, v); }); } else { $.jxinclude(jextpath + 'web/move.js', 1); setTimeout(function() { thi.move(a, v); }, 200); } return thi; }, // 鑾峰彇鍥剧墖瀵硅薄 file: function(fn) { var r = {}, f = {}, t; this.off('change').change(function(e) { t = $(this); f = $(this)[0].files; if (f) for (var i in f) { if (typeof(f[i]) != 'object') { continue; } fi(f[i], $(this)); } else fn.call(t, t.val(), '', t); }); function fi(file,t,r) { r = new FileReader(); r.readAsDataURL(file); r.onloadend = function(e) { fn.call(t, this.result, file, t); } } return this; }, /* +----------------------------------------------- 鍒╃敤iframe瀹炵幇鏅€氳〃鍗曟彁浜わ紝鏀寔鏂囦欢涓婁紶 $('form').form({ url:'/', end: function(data, f) {} }); +----------------------------------------------- */ form: function(v) { var form = this; if ($.isFunction($.fn.formSubmit)) { form.formSubmit(v); } else { form.submit(function(){ return false; }); $.jxinclude(jextpath + 'web/form.js', 1); setTimeout(function() { form.form(v); }, 200); } return form; }, // iframe鍔犺浇瀹屾垚鍚庣殑鏂规硶 iframe: function(fn) { var ifr=$(this)[0]; if (ifr.attachEvent) { ifr.attachEvent('onreadystatechange', function() { if (ifr.readyState === 'complete' || ifr.readyState == 'loaded') { ifr.detachEvent('onreadystatechange', arguments.callee); fn(ifr.contentWindow.document.body.innerHTML); } }); } else { ifr.addEventListener('load', function() { this.removeEventListener('load', arguments.call, false); fn(ifr.contentWindow.document.body.innerHTML); }, false); } } }); $('html').prepend(''); // $.include(jextpath + 'css/global.css', 1); $.include(jextpath + 'css/css.css', 1); $.include(jextpath + 'org/all.js', 1); $.include(jextpath + 'lang/' + (jextlanguage ? jextlanguage : 'cn') + '.js', 1); $.include(jextpath + 'css/animated.min.css', 1); $.include(jextpath + 'web/alert.js'); $.include(jextpath + 'web/timing.js'); $.include(jextpath + 'web/common.js'); // $.jxinclude(jextpath + 'web/contextmenu.js', $('[custom-contextmenu]').size()); // 鍒锋柊鍒ゆ柇 IsReload if(sessionStorage.getItem('isReload')){IsReload=1}else{sessionStorage.setItem('isReload', true)} $('[alertstyle]').append('body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,p,form,fieldset,input,textarea,blockquote{padding:0;margin:0}*{-webkit-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none}body{-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;-moz-text-size-adjust:100%!important}.switchery,[switchery]{width:40px;height:20px;display:inline-block;position:relative;cursor:pointer;user-select:none;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;vertical-align:middle;background:#ccc;border-radius:100px;overflow:hidden}.switchery input,[switchery] input{display:none}.switchery:after,.switchery:before,[switchery]:after,[switchery]:before{content:"";display:block;transition:all .2s;-ms-transition:all .2s;-moz-transition:all .2s;-webkit-transition:all .2s}.switchery:after,[switchery]:after{background:#fff;border-radius:100px;height:15px;width:15px;box-shadow:0 1px 5px rgba(0,0,0,.3);position:absolute;left:2px;top:2px}.switchery:before,[switchery]:before{background:#0899ea;width:0;height:100%}.switchery.cur:after,[switchery].cur:after{left:23px}.switchery.cur:before,[switchery].cur:before{width:100%}.switchery.min,[switchery][min]{height:15px;width:28px}.switchery.min:after,[switchery][min]:after{height:10px;width:10px}.switchery.min.cur:after,[switchery][min].cur:after{left:16px}[mcscroll]{overflow:hidden;position:relative;padding:0!important}[mcscroll].isok{overflow:visible!important}table{border-collapse:collapse}input,select,textarea{outline:0;background:0;border:0;vertical-align:middle}li{list-style-type:none}img{min-height:1px}.over,[over]{overflow:hidden}.m-pic,[m-pic]{text-align:center;font-size:0!important}.m-pic:after,[m-pic]:after{display:inline-block;height:100%;vertical-align:middle;content:""}.m-pic img,[m-pic] img{vertical-align:middle;max-width:100%;max-height:100%}.i-pic,[i-pic]{overflow:hidden;font-size:0;position:relative}.i-pic img,[i-pic] img{width:100%;min-height:100%}.gray,[gray]{-webkit-filter:grayscale(100%);filter:grayscale(100%);filter:gray}.text-left,[text-left]{text-align:left}.text-right,[text-right]{text-align:right}.text-center,[text-center]{text-align:center}.text-over,[text-over]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.nowrap,[nowrap]{white-space:nowrap}.break,[break]{white-space:normal;word-break:break-all}.border-box,[border-box]{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.trans,[trans]{-webkit-transition:all 300ms ease 0s;transition:all 300ms ease 0s;outline:0}.pointer,[pointer]{cursor:pointer!important}.upper,[upper]{text-transform:uppercase}.lower,[lower]{text-transform:lowercase}.maxh,[maxh]{height:100%}.maxw,[maxw]{width:100%}.notcopy,[notcopy]{user-select:none;-webkit-user-select:none}.clear,[clear]{clear:both;height:0;font-size:0;overflow:hidden;zoom:1}.clean:after,.clean:before,[clean]:after,[clean]:before{content:"";display:table}.clean:after,[clean]:after{clear:both}.fl,[fl]{float:left}.fr,[fr]{float:right}[masonry],.relative,[relative]{position:relative;z-index:1}.absolute,[absolute]{position:absolute}.absolute.max,[absolute][max]{left:0;top:0;right:0;bottom:0}.absolute.goaway,[absolute][goaway]{left:-999999px;top:-999999px;width:100%;position:absolute!important}.fixed,[fixed]{position:fixed}.fixed.max,[fixed][max]{left:0;top:0;right:0;bottom:0}.fz0,[fz0]{font-size:0}.hide,[hide]{display:none}.block,[block]{display:block}.inline,[inline]{display:inline}.inline-block,[inline-block]{display:inline-block;*display:inline;zoom:1;vertical-align:top}.table,[table]{display:table}.table.max,[table][max]{width:100%}.table-cell,[table-cell]{display:table-cell;vertical-align:middle}.table-cell.min,[table-cell][min]{width:1px}.v-middle,[v-middle]{vertical-align:middle}.v-top,[v-top]{vertical-align:top}.v-bottom,[v-bottom]{vertical-align:bottom}.container{position:relative;overflow:hidden}.container[loading]:after{position:absolute;left:0;right:0;top:0;bottom:10%;background:url('+jextpath+'images/l.gif) no-repeat center;content:"";display:block;font-size:0}.container[loading="none"]:after{background:none}.container.isok:after{display:none}.container .wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box;transform:translate3d(0px,0,0)}.container[loading] .wrapper{opacity:0}.container .slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.container[autoHeight] .slide{height:auto}[fileSelector][list="1"],[exec*=",fileSelector"][list="1"]{min-height:128px;font-size:0}[masonry]:before{background:url('+jextpath+'images/l.gif) no-repeat 50% 160px;position:absolute;left:0;right:0;top:0;bottom:10%;content:""}[masonry]>*{opacity:0;transition:all .3s;-webkit-transition:all .3s}[masonry][class*="masonry0"]>*{opacity:1}[masonry][class*="masonry0"]:before{display:none}[dragsort]{position:relative;}select[none]{appearance:none;-moz-appearance:none;-webkit-appearance:none;}select[none]:-ms-expand,select[none]:-webkit-expand,select[none]:-moz-expand{display:none;}[map]{background:url('+jextpath+'images/l.gif) no-repeat center;font-size:0;}[jsnav]{display:none}'+ '.myslide{position:relative;overflow:hidden}.myslide[loading]:after{position:absolute;left:0;right:0;top:0;bottom:10%;background:url('+jextpath+'images/l.gif) no-repeat center;content:"";display:block;font-size:0}.myslide[loading="none"]:after{background:none}.myslide.isok:after{display:none}.myslide .wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box;transform:translate3d(0px,0,0)}.myslide[loading] .wrapper{opacity:0}.myslide .slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}');