g2_common-587d88294a967c0acb1bbe233d1fd552.js
来自「Dm9000网络接口驱动大全」· JavaScript 代码 · 共 33 行 · 第 1/2 页
JS
33 行
/* Copyright 2007 Google Inc. */ (function() { ;var z=false;function B(a){try{throw a;}catch(b){C(b)}}function C(a,b){var c="Javascript exception: "+(b?b:"")+" "+a;if(n()){c+=" "+a.name+": "+a.message+" ("+a.number+")"}var d="";if(typeof a=="string"){d=a+"\n"}else{for(var g in a){try{d+=g+": "+a[g]+"\n"}catch(f){}}}d+=x(C.caller);S(c+"\n"+d,1)}var oa=/function (\w+)/;function Q(a){var b=oa.exec(String(a));if(b){return b[1]}return""}function x(a){try{if(!n()&&!(q("safari")||q("konqueror"))&&q("mozilla")){return Error().stack}if(!a)return"";var b="- "+Q(a)+"(";for(var c=0;c<a.arguments.length;c++){if(c>0)b+=", ";var d=String(a.arguments[c]);if(d.length>40){d=d.substr(0,40)+"..."}b+=d}b+=")\n";b+=x(a.caller);return b}catch(g){return"[Cannot get stack trace]: "+g+"\n"}}var T;var o=null,t=false;function R(){if((o==null||o.closed)&&!t){try{t=true;o=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");o.blur();o.document.open();t=false;var a="<font color=#ff0000><b>To turn off this debugging window,hit 'D' inside the main caribou window, then close this window.</b></font><br>";y(a)}catch(b){}}}function S(a,b){if(!z){if(typeof L!="undefined"){L(G(a))}return}try{var c=(new Date).getTime()-T,d="["+c+"] "+G(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font color=#ff0000><b>Error: "+d+"</b></font>";o.focus()}}catch(g){}y(d)}function y(a){if(!z){return}try{R();o.document.write(a);o.scrollTo(0,1000000)}catch(b){}};function q(a){if(a in s){return s[a]}return s[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var s={};function n(){return q("msie")&&!window.opera};function aa(a){try{return a.parentNode}catch(b){return a}}function da(a,b){do{if(a===b)return true;b=aa(b)}while(b&&b!==document.body);return false}function F(a,b){if(a==null||a.className==null)return false;if(a.className==b){return true}var c=a.className.split(" ");for(var d=0;d<c.length;d++){if(c[d]==b){return true}}return false}function P(a,b){if(F(a,b))return;a.className+=" "+b}function ga(a,b){if(a.className==null)return;if(a.className==b){a.className="";return}var c=a.className.split(" "),d=[],g=false;for(var f=0;f<c.length;f++){if(c[f]!=b){if(c[f]){d.push(c[f])}}else{g=true}}if(g){a.className=d.join(" ")}}function u(a){var b=a.offsetLeft;if(a.offsetParent!=null)b+=u(a.offsetParent);return b}function D(a){var b=a.offsetTop;if(a.offsetParent!=null)b+=D(a.offsetParent);return b}function $(a){return u(a)+a.offsetWidth}function ca(a){return E(a,qa)}var qa={m:function(a){return a.document.body.clientWidth},n:function(a){return a.document.documentElement.clientWidth},k:function(a){return a.innerWidth}};function ba(a){return E(a,pa)}var pa={m:function(a){return a.document.body.clientHeight},n:function(a){return a.document.documentElement.clientHeight},k:function(a){return a.innerHeight}};function E(a,b){try{if(!window.opera&&"compatMode"in a.document&&a.document.compatMode=="CSS1Compat"){return b.n(a)}else if(n()){return b.m(a)}}catch(c){}return b.k(a)}var ka=/&/g,ta=/</g,sa=/>/g;function G(a){if(!a)return"";return a.replace(ka,"&").replace(ta,"<").replace(sa,">").replace(ua,""")}var ua=/\"/g;function Y(a){return a.srcElement||a.target}function H(a){return typeof a!="undefined"}function Z(a){var b;if(a.keyCode){b=a.keyCode}else if(a.which){b=a.which}return b}function ma(a){return document.getElementById(a)}function na(a){return document.all[a]}var la=document.getElementById?ma:na;function L(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=la("log");if(c){var d="<p class=logentry><span class=logdate>"+new Date+"</span><span class=logmsg>"+a+"</span></p>";c.innerHTML=d+c.innerHTML}else{window.status=a}};function l(){}l.raise=function(a){if(typeof Error!="undefined"){throw new Error(a||"Assertion Failed");}else{throw a;}};l.fail=function(a){if(a===undefined)a="Assertion failed";if(!(B===undefined))B(a+"\n");l.raise(a)};l.isTrue=function(a,b){if(!a){if(b===undefined)b="Assertion failed";l.fail(b)}};l.equals=function(a,b,c){if(a!=b){if(c===undefined){c="AS_Assert.equals failed: <"+a+"> != <"+b+">"}l.fail(c)}};l.typeOf=function(a,b,c){if(typeof a==b)return;if(a||a==""){try{if(b==l.TYPE_MAP[typeof a]||a instanceof b){return}}catch(d){}}if(c===undefined){if(typeof b=="function"){var g=b.toString().match(/^\s*function\s+([^\s\{]+)/);if(g)b=g[1]}c="AS_Assert.typeOf failed: <"+a+"> not typeof "+b}l.fail(c)};l.TYPE_MAP={string:String,number:Number,"boolean":Boolean};l.numArgs=function(a,b){var c=l.numArgs.caller;if(c&&c.arguments.length!=a){if(b===undefined){b=c.name+" expected "+a+" arguments but received "+c.arguments.length}l.fail(b)}};var ra=this;String.prototype.s=function(a){return this.indexOf(a)==0};String.prototype.q=function(a){var b=this.length-a.length;return b>=0&&this.lastIndexOf(a,b)==b};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.subs=function(){var a=this;for(var b=0;b<arguments.length;b++){a=a.replace(/\%s/,String(arguments[b]))}return a};if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[],d,g;if(!a)a=ra;var f=b||[];for(var h=0;h<f.length;h++){c[h]="args["+h+"]"}g="oScope.__applyTemp__.peek()("+c.join(",")+");";if(!a.__applyTemp__){a.__applyTemp__=[]}a.__applyTemp__.push(this);d=eval(g);a.__applyTemp__.pop();return d}}if(!Array.prototype.push){Array.prototype.push=function(a){for(var b=0;b<arguments.length;b++){this[this.length]=arguments[b]}return this.length}}if(!Array.prototype.pop){Array.prototype.pop=function(){if(!this.length){return}var a=this[this.length-1];this.length--;return a}}Array.prototype.peek=function(){return this[this.length-1]};if(!Array.prototype.shift){Array.prototype.shift=function(){if(this.length==0){return}var a=this[0];for(var b=0;b<this.length-1;b++){this[b]=this[b+1]}this.length--;return a}}if(!Array.prototype.unshift){Array.prototype.unshift=function(a){var b=arguments.length;for(var c=this.length-1;c>=0;c--){this[c+b]=this[c]}for(var d=0;d<b;d++){this[d]=arguments[d]}return this.length}}if(!Array.prototype.i){Array.prototype.i=function(a,b){for(var c=0;c<this.length;c++){a.call(b,this[c],c,this)}}}function K(a,b,c){var d=a.g||[];d=d.concat(Array.prototype.slice.call(arguments,2));if(typeof a.d!="undefined"){b=a.d}if(typeof a.c!="undefined"){a=a.c}var g=function(){var f=d.concat(Array.prototype.slice.call(arguments));return a.apply(b,f)};g.g=d;g.d=b;g.c=a;return g}Function.prototype.bind=function(a,b){return K.apply(null,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.partial=function(){return K.apply(null,[this,null].concat(Array.prototype.slice.call(arguments)))};Function.prototype.inherits=function(a){var b=function(){};b.prototype=a.prototype;this.t=a.prototype;this.prototype=new b};Function.prototype.mixin=function(a){for(var b in a){this.prototype[b]=a[b]}if(typeof a["toString"]=="function"&&a["toString"]!=this.prototype["toString"]){this.prototype.toString=a.toString}};Function.prototype.bind=function(a,b){if(typeof this!="function"){throw new Error("Bind must be called as a method of a function object.");}var c=this,d=Array.prototype.splice.call(arguments,1,arguments.length);return function(){var g=d.concat();for(var f=0;f<arguments.length;f++){g.push(arguments[f])}return c.apply(a,g)}};var r,N,O;(function(){var a={},b=0;function c(f){if(f.o==null){f.o=++b}return f.o}function d(f,h,j,k){var i=c(f),m=c(j);k=!(!k);var v=i+"_"+h+"_"+m+"_"+k;return v}r=function(f,h,j,k){var i=d(f,h,j,k);if(i in a){return i}var m=g.bind(null,i);a[i]={listener:j,proxy:m,event:h,node:f,useCapture:k};if(f.addEventListener){f.addEventListener(h,m,k)}else if(f.attachEvent){f.attachEvent("on"+h,m)}else{throw new Error("Node {"+f+"} does not support event listeners.");}return i};N=function(f,h,j,k){var i=d(f,h,j,k);return O(i)};O=function(f){if(!(f in a)){return false}var h=a[f],j=h.proxy,k=h.event,i=h.node,m=h.useCapture;if(i.removeEventListener){i.removeEventListener(k,j,m)}else if(i.detachEvent){i.detachEvent("on"+k,j)}delete a[f];return true};function g(f){var h=Array.prototype.splice.call(arguments,1,arguments.length);return a[f].listener.apply(null,h)}})();;function A(a,b,c){this.j=b;if(c){this.e=[];for(var d=0;d<a.length;d++){this.e.push(c+a[d])}}else{this.e=a}}A.prototype.load=function(a){this.p=a;this.l=0;var b=this.j.getElementsByTagName("head")[0];for(var c=0;c<this.e.length;c++){var d=this.j.createElement("script");d.type="text/javascript";if(n()){d.onreadystatechange=this.h.bind(this,d)}else{d.onload=this.h.bind(this,d)}d.src=this.e[c];b.appendChild(d)}};A.prototype.h=function(a){if(n()&&a.readyState!="complete")return;this.l++;if(this.l==this.e.length&&this.p){this.p()}};var e=e||{};e.global=this;e.provide=function(a){var b=a.split("."),c=e.global;for(var d;d=b.shift();){if(c[d]){c=c[d]}else{c=(c[d]={})}}};e.getObjectByName=function(a){var b=a.split("."),c=e.global;for(var d;d=b.shift();){if(c[d]){c=c[d]}else{return null}}return c};e.globalize=function(a,b){e.mixin(b||e.global,a)};e.addDependency=function(a,b,c){};e.require=function(a){};e.addIncludeRoot=function(a,b){};e.basePath="";e.nullFunction=function(){};e.a={UNDEFINED:"undefined",NUMBER:"number",STRING:"string",BOOLEAN:"boolean",FUNCTION:"function",OBJECT:"object"};e.isDef=function(a){return typeof a!=e.a.UNDEFINED};e.isNull=function(a){return a===null};e.isArray=function(a){return a instanceof Array||e.isObject(a)&&typeof a.join==e.a.FUNCTION&&typeof a.reverse==e.a.FUNCTION};e.isArrayLike=function(a){return e.isObject(a)&&typeof a.length==e.a.NUMBER};e.isDateLike=function(a){return e.isObject(a)&&e.isFunction(a.getFullYear)};e.isString=function(a){return typeof a==e.a.STRING};e.isBoolean=function(a){return typeof a==e.a.BOOLEAN};e.isNumber=function(a){return typeof a==e.a.NUMBER};e.isFunction=function(a){return typeof a==e.a.FUNCTION};e.isObject=function(a){return a!=null&&typeof a==e.a.OBJECT};e.getHashCode=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(e.b)){return a[e.b]}if(!a[e.b]){a[e.b]=String(++e.r)}return a[e.b]};e.removeHashCode=function(a){if("removeAttribute"in a){a.removeAttribute(e.b)}try{delete a[e.b]}catch(b){}};e.b="closure_hashCode_";e.r=0;e.cloneObject=function(a){if(e.isObject(a)){if(a.clone){return a.clone()}var b=
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?