vendor: 6,916 bytes, lines 1-54
1$(document).ready(function(){ 2 $("header nav ul.navbar-nav li a.dropdown-toggle").click(function(){ window.location.href=$(this).attr("href"); }); 3}); 4$('.weixinbox').popover({ 5 html:true, 6 trigger:'hover', 7 content:$(".weixinme").html(), 8 placement:'top', 9 template:'<div class="popover" role="tooltip"><div class="arrow"></div><div class="popover-content"></div></div>' 10}); 11 12/*é»è®¤åè½*/ 13var metcst = document.querySelector('meta[name="generator"]').getAttribute('data-variable'), 14 DataStr = metcst.split("|"), 15 met_weburl = DataStr[0], 16 lang = DataStr[1], 17 classnow = parseInt(DataStr[2]), 18 id = parseInt(DataStr[3]), 19 met_module = parseInt(DataStr[4]), 20 met_skin_user = DataStr[5], 21 met_mobile = DataStr[6], 22 MetpageType = classnow == 10001 ? 1 : (id ? 3 : 2), 23 metcommon = met_mobile == 'mobile' ? "effects/include/common_mobile" : "effects/include/common"; 24/*弿¥å è½½ - å¨çº¿äº¤æµ - ç«é¿ç»è®¡ */ 25var url=met_weburl+'include/interface/uidata.php?lang='+lang,h = window.location.href; 26if(h.indexOf("preview=1")!=-1)url = url + '&theme_preview=1'; 27$.ajax({ 28 type: "POST", 29 url: url, 30 dataType:"json", 31 success: function(msg){ 32 var c = msg.config; 33 if(c.met_online_type!=3){ //å¨çº¿äº¤æµ 34 $.extend({ 35 includePath: '', 36 include: function(file) 37 { 38 var files = typeof file == "string" ? [file] : file; 39 for (var i = 0; i < files.length; i++) 40 { 41 var name = files[i].replace(/^\s|\s$/g, ""); 42 var att = name.split('.'); 43 var ext = att[att.length - 1].toLowerCase(); 44 var isCSS = ext == "css"; 45 var tag = isCSS ? "link" : "script"; 46 var attr = isCSS ? " type='text/css' rel='stylesheet' " : " type='text/javascript' "; 47 var link = (isCSS ? "href" : "src") + "='" + $.includePath + name + "'"; 48 if ($(tag + "[" + link + "]").length == 0) $("head").prepend("<" + tag + attr + link + "></" + tag + ">"); 49 } 50 } 51 }); 52 $.include(met_weburl+'public/css/online.css'); 53/*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */ 54jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(o),i},set:function(e){r(o),i=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=i}var i={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var o=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",o||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,i,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(g)&&(o?a in o:e.isFunction(e.fn[a])))?e(t)[a](i):("type"===a&&i!==n&&l.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,i=e.prop(t,r);return i===!0||"boolean"!=typeof i&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,i))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var i;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(i=y.exec(e.trim(t)))&&i[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),i[3]&&r("$(html) HTML text after last tag is ignored"),"#"===i[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(i[2],n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,i,o=this[0];return!o||"events"!==t||1!==arguments.length||(a=e.data(o,t),i=e._data(o,t),a!==n&&a!==i||i===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),i)};var j=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,i,o){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),i)for(c=function(e){return!e.type||j.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(i.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].c
54oncat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,T=e.fn.live,M=e.fn.die,S="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",C=RegExp("\\b(?:"+S+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeof t||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,i){e!==document&&C.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,i)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,i=t.guid||e.guid++,o=0,s=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%o;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=i;a.length>o;)a[o++].guid=i;return this.click(s)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),T?T.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),M?M.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return n||C.test(e)||r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(S.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window); 55 var t,x,y; 56 57//åºå®æ¹å¼ 58(function($){ 59jQuery.fn.PositionFixed = function(options) { 60 var defaults = { 61 css:'', 62 x:0, 63 y:0 64 }; 65 var o = jQuery.extend(defaults, options); 66 var isIe6=false; 67 if($.browser.msie && parseInt($.browser.version)==6)isIe6=true; 68 var html= $('html'); 69 if (isIe6 && html.css('backgroundAttachment') !== 'fixed') { 70 html.css('backgroundAttachment','fixed') 71 }; 72 return this.each(function() { 73 var domThis=$(this)[0]; 74 var objThis=$(this); 75 if(isIe6){ 76 var left = parseInt(o.x) - html.scrollLeft(), 77 top = parseInt(o.y) - html.scrollTop(); 78 objThis.css('position' , 'absolute'); 79 domThis.style.setExpression('left', 'eval((document.documentElement).scrollLeft + ' + o.x + ') + "px"'); 80 domThis.style.setExpression('top', 'eval((document.documentElement).scrollTop + ' + o.y + ') + "px"'); 81 }else{ 82 objThis.css('position' , 'fixed').css('top',o.y).css('left',o.x); 83 } 84 }); 85}; 86})(jQuery) 87//æ»å¨æ¹å¼ 88var Floaters = { 89 delta: 0.08, 90 queue: null, 91 collection: {}, 92 items: [], 93 addItem: function(Obj,left,top,ani){ 94 Obj.style['top'] = top + 'px'; 95 Obj.style['left'] = left + 'px'; 96 var newItem = { object:Obj, oLeft:left, oTop:top }; 97 this.items[this.items.length] = newItem; 98 this.delta = ani ? ani : this.delta; 99 }, 100 sPlay: function(){ 101 this.collection = this.items;this.queue = setInterval(function(){metplay()},10); 102 } 103} 104function checkStandard(){ 105 var scrollY; 106 if (document.documentElement && document.documentElement.scrollTop){ 107 scrollY = document.documentElement.scrollTop; 108 }else if (document.body){ 109 scrollY = document.body.scrollTop; 110 } 111 return scrollY; 112} 113function metplay(){ 114 var diffY = checkStandard(); 115 for(var i in Floaters.collection){ 116 var obj = Floaters.collection[i].object; 117 var obj_y = Floaters.collection[i].oTop; 118 var total = diffY + obj_y; 119 if( obj.offsetTop != total){ 120 var oy = (total - obj.offsetTop) * Floaters.delta; 121 oy = ( oy>0?1:-1 ) * Math.ceil( Math.abs(oy) ); 122 obj.style['top'] = obj.offsetTop + oy + 'px'; 123 }else{ 124 clearInterval(Floaters.queue); 125 Floaters.queue = setInterval(function(){metplay()},10); 126 } 127 } 128} 129//å¨çº¿äº¤æµé¨å 130function onlineclose(){ 131 $('#onlinebox').hide(); 132 return false; 133} 134function olne_domx(type,onlinex){ 135 var maxr=document.body.offsetWidth-$('#onlinebox').width(); 136 if(type>1){ 137 onlinex=document.body.scrollWidth-$('#onlinebox').width()-onlinex; 138 } 139 if(onlinex<0)onlinex=0; 140 if(onlinex > maxr){ 141 onlinex=maxr; 142 if($.browser.msie && parseInt($.browser.version)==6)onlinex=maxr-18; 143 } 144 return onlinex; 145} 146function olne_domx_op(type,onlinex){ 147 var zwd = document.documentElement.clientWidth; 148 var oboxw = $('#onlinebox').width(); 149 oboxw = oboxw==0?$('#onlinebox .onlinebox-conbox').width():oboxw; 150 var maxr=zwd-oboxw; 151 if(type>1){ 152 onlinex=zwd-oboxw-onlinex; 153 } 154 if(onlinex<0)onlinex=0; 155 if(onlinex > maxr){ 156 onlinex=maxr; 157 if($.browser.msie && parseInt($.browser.version)==6)onlinex=maxr-18; 158 } 159 return onlinex; 160} 161function olne_dd_wd(d){ 162 var w=0; 163 d.each(function(){ 164 w=w>$(this).outerWidth(true)?w:$(this).outerWidth(true); 165 }); 166 return w; 167}
168function olne_mouse_on(t,my,nex,type){ 169 if(t==1){ 170 my.hide(); 171 nex.show(); 172 var dmk=$('div.onlinebox-conbox .online-tbox').size()?$('div.onlinebox-conbox .online-tbox').outerWidth(true):0; 173 var dt=olne_dd_wd($('div.onlinebox-conbox dd')); 174 dt=dt>dmk?dt:$('div.onlinebox-conbox .online-tbox').outerWidth(true); 175 if(dt<=0)dt=100; 176 nex.css({ 177 'width':dt+'px' 178 }); 179 }else{ 180 nex.css({ 181 'position':'absolute', 182 'left':'0px' 183 }); 184 nex.hide(); 185 my.show(); 186 } 187 olne_resize(); 188} 189/*页é¢å°ºå¯¸åå*/ 190function olne_resize(){ 191 192 mx=Number(olne_domx_op(t,x)); 193 my=Number(y); 194 if(t>0 && t<3){//0åºå·¦1æ»å·¦2æ»å³3å ³é4åºå³ 195 var floatDivr=document.getElementById('onlinebox'); 196 Floaters.addItem(floatDivr,mx,my); 197 Floaters.sPlay(); 198 }else{ 199 $('#onlinebox').PositionFixed({x:mx,y:my}); 200 } 201} 202function olne_mouse(dom,type){ 203 var nex=dom.next('div.onlinebox-conbox'); 204 if($('.onlinebox_2').size()>0){ 205 dom.click(function(){ olne_mouse_on(1,$(this),nex,type); }); 206 }else{ 207 dom.hover(function(){ olne_mouse_on(1,$(this),nex,type); },function(){}); 208 } 209 $('#onlinebox .onlinebox-top').click(function(){ if(!nex.is(':hidden'))olne_mouse_on(0,dom,nex,type); }); 210 textWrap($(".onlinebox-showbox span")); 211} 212function textWrap(my){ 213 var text='',txt=my.text(); 214 txt=txt.split(""); 215 for(var i=0;i<txt.length;i++){ 216 text+=txt[i]+'<br/>'; 217 } 218 my.html(text); 219} 220 221function olne_app(msg,type,mxq,myq){ 222 $('body').append(msg); 223 mx=Number(olne_domx_op(type,mxq)); 224 my=Number(myq); 225 if(type>0 && type<3){//0åºå·¦1æ»å·¦2æ»å³3å ³é4åºå³ 226 var floatDivr=document.getElementById('onlinebox'); 227 Floaters.addItem(floatDivr,mx,my); 228 Floaters.sPlay(); 229 }else{ 230 $('#onlinebox').PositionFixed({x:mx,y:my}); 231 } 232 $(window).resize(function() { 233 olne_resize(); 234 }); 235 $('#onlinebox').show(); 236 if($('div.onlinebox-showbox').size()>0)olne_mouse($('div.onlinebox-showbox'),type); 237} 238 239$(document).ready(function() { 240 var url=met_weburl+'include/online.php?lang='+lang; 241 $.ajax({ 242 type: "POST", 243 url: url, 244 dataType:"json", 245 success: function(msg){ 246 t=msg.t,x=msg.x,y=msg.y; 247 if(t!=3){ 248 olne_app(msg.html,t,x,y); 249 } 250 } 251 }); 252}); 253 } 254 if(c.met_stat==1){ //ç«é¿ç»è®¡ 255 var navurl=classnow==10001?'':'../'; 256 var stat_d=classnow+'-'+id+'-'+lang; 257 var url = met_weburl+'include/stat/stat.php?type=para&u='+navurl+'&d='+stat_d; 258 $.getScript(url); 259 } 260 } 261});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.