⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 8yxqebj2wii.js

📁 Teach Yourself Programming in Ten Years
💻 JS
📖 第 1 页 / 共 5 页
字号:
_exportSymbols("google.gadgets.Fetchers",["getContent",_IG_FetchContent,"getXMLContent",ig_Sa,"getFeedAsJSON",_IG_FetchFeedAsJSON]);function _hide_sent_content_messages(){_gel("sent_content_msg").className="hidden_msg";_gel("sent_tab_box").className="hidden_msg_box";_gel("send_tab_error_box").className="hidden_msg_box";_gel("sent_gadget_box").className="hidden_msg_box"}var ig_1=ig_;function _share_gadget(a,b,c,d,e,f,g,h){if(d){_hide_sent_content_messages();if(!ig_1)ig_1=_gel("sent_gadget_box").innerHTML;_gel("sent_gadget_box").innerHTML=ig_1.replace("GADGET_NAME",_get_module_title(d))}var i=g?"_gel('popup_iframe').contentWindow.prepareEmail(_gel('share_userprefs') ? _gel('share_userprefs').checked : false)":"_gel('popup_iframe').contentWindow.prepareEmail();",j=['<input type="button" id="send_btn" disabled="true" onclick="'+i+'" value="'+e+'"></input>',_IG_PU_MakeDialogButton(f)],k="titlebar userprefs userprefs_border",l=_get_userprefs_checkbox_html(g,h,k);_IG_PU_openURL(a,l,b,c,j,d?_finish_sharing_gadget:ig_);_IG_PU_disable_hide_for_button(0)}function _share_this_gadget(a,b,c){if(c){_hide_sent_content_messages();if(!ig_1)ig_1=_gel("sent_gadget_box").innerHTML;_gel("sent_gadget_box").innerHTML=ig_1.replace("GADGET_NAME",_get_module_title(c))}_IG_PU_openURL('<img src="/ig/images/sharegadget.gif"> '+a,ig_,b,"555px",ig_,c?_finish_sharing_gadget:ig_);_IG_PU_disable_hide_for_button(0)}function _share_tab_with_gadget_checkboxes(a,b,c,d,e,f,g){var h='<iframe id="popup_iframe" width="100%" height="0px" src="'+_hesc(b)+'" onload="_ResizeIframeHeight();" scrolling="no"></iframe>',i="_gel('popup_iframe').contentWindow.storeTabAndPrepareEmail(_find_unshared_gadgets(), _gel('share_userprefs') ? _gel('share_userprefs').checked : false);",j=['<input type="button" id="send_btn" disabled="true" onclick="'+_hesc(i)+'" value="'+_hesc(f)+'"></input>',_IG_PU_MakeDialogButton(g)];if(!_uli){_IG_PU_open(a,h,j);_gel("buttons").className+=" colored_background";return}var k=_get_all_modules(),l=Math.max(k.length*160,400),n=7,p=0;for(var q=0;q<k.length;q++)if(k[q].length>p)p=k[q].length;var s=p>n&&c!="NO_TRANSLATION",m=[a];m.push('<form id="module_list">');m.push('<table class="titlebar module_list_table" ','cols="',k.length,'"',' width="',l,'px">');s?m.push('<tr class="zipped_modules" id="module_list_zipper">'):m.push('<tr class="unzipped_modules">');for(var o=0;o<k.length;o++){m.push('<td width="',100/k.length,'%" ','valign="top">');for(var r=0;r<k[o].length;r++){var t=_hesc(k[o][r].id.replace("m_","")),u=_hesc(_get_module_title(k[o][r]));m.push('<div class="module_item');r>=n&&s&&m.push(" extra_items");m.push('">');m.push('<input id="share_',t,'" type="checkbox"'," checked ></input>");m.push('<label for="share_',t,'">',u,"</label>");m.push("</div>")}m.push("</td>")}m.push("</tr>");if(s){m.push('<tr class="zipped_module_list">');m.push('<td id="show_all_modules" colspan="',k.length,'" style="font-size:80%;text-align:center;">');m.push('<a href="javascript:void(0);" id="zipper_text"',' onclick="_modules_zipper();">');m.push(c,"</a>");m.push("</td></tr>")}m.push("</table>");m.push(_get_userprefs_checkbox_html(d,e,"userprefs"));m.push("</form>");_IG_PU_open(m.join(""),h,j);_IG_PU_disable_hide_for_button(0);_gel("dialogcontent").className+=" url";_gel("buttons").className+=" colored_background"}function _show_shared_userprefs_alert(){if(_gel("share_userprefs").checked){_gel("share_userprefs_alert").style.display="block";_gel("popup_iframe").contentWindow.shouldShareUserprefs(ig_b)}else{_gel("share_userprefs_alert").style.display="none";_gel("popup_iframe").contentWindow.shouldShareUserprefs(ig_a)}}function _get_userprefs_checkbox_html(a,b,c){var d=[];if(a&&a!=""){d.push('<div class="',c,'">');d.push('<input id="share_userprefs" type="checkbox"');b!=""&&d.push(' onclick="_show_shared_userprefs_alert();"');d.push("></input>");d.push('<label for="share_userprefs">',a,"</label>");b!=""&&d.push('<div class="userprefs_alert"',' id="share_userprefs_alert">',b,"</div>");d.push("</div>")}return d.join("")}function _modules_zipper(){if(_gel("module_list_zipper").className=="zipped_modules"){_gel("module_list_zipper").className="unzipped_modules";_gel("show_all_modules").style.display="none"}_ResizeIframeHeight()}function _find_unshared_gadgets(){var a=_gel("module_list").elements,b=[];for(var c=0;c<a.length;c++)ig_Va(a[c])||(b[b.length]=a[c].id.replace("share_",""));return b}function ig_Va(a){if(a&&a.tagName=="INPUT"){var b=_gel("module_list_zipper"),c=b&&/unzipped_modules/.test(_gel("module_list_zipper").className),d=/extra_items/.test(a.parentNode.className),e=!b||c||!d;return a.checked&&e}return ig_a}function _finish_sharing_gadget(a){if(a==_DI_button_type.OK){_gel("sent_content_msg").className="msg";_gel("sent_tab_box").className="hidden_msg_box";_gel("send_tab_error_box").className="hidden_msg_box";_gel("sent_gadget_box").className="msg_box"}}function _finish_sharing_tab(a){_gel("sent_content_msg").className="msg";_gel("sent_gadget_box").className="hidden_msg_box";if(a){_gel("sent_tab_box").className="msg_box";_gel("send_tab_error_box").className="hidden_msg_box"}else{_gel("send_tab_error_box").className="msg_box";_gel("sent_tab_box").className="hidden_msg_box"}};var ig_2;ig_2||(ig_2=(function(){function a(j){return j<10?"0"+j:j}Date.prototype.m=function(){return this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z"};String.prototype.m=Number.prototype.m=Boolean.prototype.m=function(){return this.valueOf()};var b=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d,e,f={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},g;function h(j){c.lastIndex=0;return c.test(j)?'"'+j.replace(c,function(k){var l=f[k];if(typeof l==="string")return l;return"\\u"+("0000"+(+k.charCodeAt(0)).toString(16)).slice(-4)})+'"':'"'+j+'"'}function i(j,k){var l,n,p,q,s=d,m,o=k[j];if(o&&typeof o==="object"&&typeof o.m==="function")o=o.m(j);if(typeof g==="function")o=g.call(k,j,o);switch(typeof o){case "string":return h(o);case "number":return isFinite(o)?String(o):"null";case "boolean":case "null":return String(o);case "object":if(!o)return"null";d+=e;m=[];if(typeof o.length==="number"&&!o.propertyIsEnumerable("length")){q=o.length;for(l=0;l<q;l+=1)m[l]=i(l,o)||"null";p=m.length===0?"[]":d?"[\n"+d+m.join(",\n"+d)+"\n"+s+"]":"["+m.join(",")+"]";d=s;return p}if(g&&typeof g==="object"){q=g.length;for(l=0;l<q;l+=1){n=g[l];if(typeof n==="string"){p=i(n,o);if(p)m.push(h(n)+(d?": ":":")+p)}}}else for(n in o)if(Object.hasOwnProperty.call(o,n)){p=i(n,o);if(p)m.push(h(n)+(d?": ":":")+p)}p=m.length===0?"{}":d?"{\n"+d+m.join(",\n"+d)+"\n"+s+"}":"{"+m.join(",")+"}";d=s;return p}}return{stringify:function(j,k,l){var n=k,p=l,q;d="";e="";if(typeof p==="number")for(q=0;q<p;q+=1)e+=" ";else if(typeof p==="string")e=p;g=n;if(n&&typeof n!=="function"&&(typeof n!=="object"||typeof n.length!=="number"))throw new Error("JSON.stringify");return i("",{"":j})},parse:function(j,k){var l=k,n;function p(q,s){var m,o,r=q[s];if(r&&typeof r==="object")for(m in r)if(Object.hasOwnProperty.call(r,m)){o=p(r,m);if(o!==undefined)r[m]=o;else delete r[m]}return l.call(q,s,r)}b.lastIndex=0;if(b.test(j))j=j.replace(b,function(q){return"\\u"+("0000"+(+q.charCodeAt(0)).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(j.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){n=eval("("+j+")");return typeof l==="function"?p({"":n},""):n}throw new Error("JSON.parse");}}})());ig_2.parse=(function(){var a=ig_2.parse;return function(b,c){try{return a(b,c)}catch(d){return ig_a}}})();function ig_Wa(a){var b=document.createElement("DIV");b.innerHTML="<iframe onload='this.pool_locked=false'></iframe>";var c=b.getElementsByTagName("IFRAME")[0];c.style.visibility="hidden";c.style.width=c.style.height="0px";c.style.border="0px";c.style.position="absolute";c.pool_locked=a;this.e[this.e.length]=c;b.removeChild(c);return c}function ig_Xa(a){if(!a.match(/^http[s]?:\/\//))return;var b=this;window.setTimeout(function(){var c=ig_;for(var d=b.e.length-1;d>=0;d--){var e=b.e[d];if(e&&!e.pool_locked){e.parentNode.removeChild(e);if(window.ActiveXObject){b.e[d]=ig_;b.e.splice(d,1)}else{e.pool_locked=ig_b;c=e;break}}}c=c?c:b.Xa(ig_b);c.src=a;document.body.appendChild(c)},0)}function ig_Ya(){for(var a=0;a<this.e.length;a++){this.e[a].onload=ig_;this.e[a]=ig_}this.e.length=0;this.e=[]}function ig_Za(){for(var a=0;a<this.e.length;a++){var b=this.e[a];b&&b.parentNode.removeChild(b)}}function ig__a(){this.e=[];this.Xa=ig_Wa;this.iframe=ig_Xa;this.clear=ig_Ya;this.dispose=ig_Za}function ig_0a(a,b){_IFPC.D[a]=b}function ig_1a(a){delete _IFPC.D[a]}function ig_2a(a,b,c,d,e,f,g){if(_IFPC.W)return;c=c.slice(0);c.unshift(_IFPC.jb(e));c.unshift(f);c.unshift(b);c.unshift(a);var h=4095-d.length;h=parseInt(h/3,10);if(typeof g=="undefined")g=ig_b;var i=_IFPC.Fa(c),j=parseInt(i.length/h,10);if(i.length%h>0)j+=1;for(var k=0;k<j;k++){var l=i.substr(k*h,h),n=[a,_IFPC.Ca,j,k,l,g];_IFPC.ha.iframe(d+"#"+_IFPC.Fa(n))}_IFPC.Ca++}function ig_3a(){_IFPC.D={};_IFPC.s={};_IFPC.ha.clear()}function ig_4a(){if(!_IFPC.W){_IFPC.W=ig_b;_IFPC.ha.dispose();_IFPC.clear()}}function ig_3(a){var b=_IFPC.V(a)[0],c=ig_;try{c=window.parent.frames[b]}catch(d){}try{if(!c&&window.parent.parent.frames[b]!=window.parent){window.parent.parent.frames[b].setTimeout(function(){},0);c=window.parent.parent.frames[b]}}catch(d){}if(!c)c=window.parent.parent;if(!c||c._IFPC==undefined){c=ig_;return}var e=function(){c._IFPC.handleRequest(a)};window.ActiveXObject?e():c.setTimeout(e,0)}function ig_5a(a){var a=_IFPC.V(a),b=a.shift(),c=a.shift(),d=a.shift(),e=a.shift(),f=a.shift(),g=a.shift(),h=b+"_"+c;_IFPC.q[h]||(_IFPC.q[h]=[]);_IFPC.q[h].push([e,f]);if(_IFPC.q[h].length==d){_IFPC.q[h].sort(function(s,m){return parseInt(s[0],10)-parseInt(m[0],10)});f="";for(var i=0;i<d;i++)f+=_IFPC.q[h][i][1];_IFPC.q[h]=ig_;var j=_IFPC.V(f),b=j.shift(),k=j.shift(),l=j.shift(),n=j.shift(),p=_IFPC.eb(k);if(p){var q=p.apply(ig_,j);if(_IFPC.hb(n)){q.unshift(n);_IFPC.call(b,_IFPC.va,q,l,ig_,"")}}else if(g)throw new Error("Service "+k+" not registered.");}}function ig_6a(a){return _IFPC.D.hasOwnProperty(a)?_IFPC.D[a]:ig_}function ig_7a(a){var b="";if(a&&typeof a=="function"){b=_IFPC.db();_IFPC.s[b]=a}return b}function ig_8a(a){if(_IFPC.s.hasOwnProperty(a))_IFPC.s[a]=ig_}function ig_9a(a){if(a&&_IFPC.s.hasOwnProperty(a))return _IFPC.s[a];return ig_}function ig_$a(){return _IFPC.ua+_IFPC.Va++}function ig_ab(a){return(a+"").indexOf(_IFPC.ua)==0}function ig_bb(a){var b=a.split("&");for(var c=0;c<b.length;c++){var d=decodeURIComponent(b[c]);try{d=ig_2.parse(d)}catch(e){}b[c]=d}return b}function ig_cb(a){var b=[];for(var c=0;c<a.length;c++){var d=ig_2.stringify(a[c]);b.push(encodeURIComponent(d))}return b.join("&")}function ig_db(a){var b=_IFPC.bb(a);if(b){var c=[];for(var d=1;d<arguments.length;d++)c[c.length]=arguments[d];b.apply(ig_,c);_IFPC.pb(a)}else throw new Error("Invalid callbackId");}var _IFPC={registerService:ig_0a,unregisterService:ig_1a,call:ig_2a,clear:ig_3a,dispose:ig_4a,relayRequest:ig_3,processRequest:ig_3,handleRequest:ig_5a,ua:"cbid",va:"ifpc_callback",ha:new ig__a,q:{},D:{},s:{},Va:0,Ca:0,W:ig_a,eb:ig_6a,jb:ig_7a,pb:ig_8a,bb:ig_9a,db:ig_$a,hb:ig_ab,V:ig_bb,Fa:ig_cb,Wa:ig

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -