📄 1533466593-widgets.js
字号:
"zippy"),d=b.parentNode;if(w_l(d,w_d.INTERVAL_EXPANDED_VALUE)){w_y(d,w_d.INTERVAL_EXPANDED_VALUE);w_q(d,w_d.INTERVAL_COLLAPSED_VALUE);c.innerHTML=w_d.Kb;w_y(c,w_d.TOGGLE_OPEN_CLASS);return false}else{w_y(d,w_d.INTERVAL_COLLAPSED_VALUE);w_q(d,w_d.INTERVAL_EXPANDED_VALUE);c.innerHTML=w_d.Ib;w_q(c,w_d.TOGGLE_OPEN_CLASS)}if(this.Wa(d)){var e=this.X(d);if(!e){e=document.createElement("UL");d.appendChild(e);w_q(e,w_d.POST_LIST_CLASS)}e.appendChild(document.createTextNode(w_d.LOADING_MSG));this.a.p("getTitles",{path:this.Ma(d)})}return false};w_d.prototype.X=function(a){return w_.GetFirstElementInElementWithClass(a,w_d.POST_LIST_CLASS)};w_d.prototype.Ma=function(a){var b=w_.GetFirstElementInElementWithClass(a,w_d.POST_COUNT_LINK_CLASS);return b.href};w_d.prototype.Na=function(a){var b=w_.GetFirstElementInElementWithClass(a,w_d.POST_COUNT_CLASS);return parseInt(b.innerHTML,10)};w_d.prototype.nb=function(a){var b=a.path,c=this.X(this.La(b));c.innerHTML="";for(var d=0;d<a.posts.length;d++){var e=a.posts[d],f=document.createElement("li");f.innerHTML="<a href="+e.url+">"+e.title+"</a>";c.appendChild(f)}};w_d.prototype.La=function(a){var b=this.e.rootElement.getElementsByTagName("A");for(var c in b){var d=b[c];if(d.href==a)return d.parentNode}};w_d.prototype.Wa=function(a){var b=a.getElementsByTagName("UL");if(b.length>0&&!w_l(b[0],"posts")){return}var c=this.Na(a),d=a.getElementsByTagName("LI"),e=d.length;return e<c};var _BlogArchiveView=w_d;function w_f(a){this.a=a;this.u=a.j();if(this.u.data){this.wb=this.u.data.showBacklinks}}w_f.BACKLINKS_ROOT="backlinks-container";w_f.BACKLINKS_CHUNK="backlinks";w_f.BACKLINK_ITEM_ROOT_CLASS="backlink-control";w_f.BACKLINK_EXPANDED_CLASS="expanded-backlink";w_f.BACKLINK_COLLAPSED_CLASS="collapsed-backlink";w_f.BACKLINK_ZIPPY_CLASS="backlink-toggle-zippy";w_f.WIDGET_TYPE_NAME="Blog";w_f.prototype.d=function(){return w_f.WIDGET_TYPE_NAME};w_f.prototype.b=function(){return this.a};w_f.prototype.c=function(a,b){if(a=="initial"){this.u.data=b;w_.DisplayWidget(this,true)}else if(a=="nextposts"){this.Ea(b)}else if(a=="configure"){this.a.g(b)}else if(a=="backlinks"){this.mb(b)}};w_f.prototype.Ea=function(a){var b=a.renderedData,c=this.u.rootElement;if(!b||!c){return}c.innerHTML=b;window.scroll(0,0);this.h()};w_f.prototype.mb=function(a){this.wb=false;var b=this.a.L(w_f.BACKLINKS_CHUNK,a),c=this.a.m(w_f.BACKLINKS_ROOT);if(c){c.innerHTML="";c.appendChild(b)}var d=w_3(this.u.rootElement,w_f.pb);for(var e=0;e<d.length;e++){var f=d[e];f.onclick=this.lb.bind(this)}var g=this.a.m("backlinks-create-link");if(g!=null){g.onclick=this.Ba.bind(this,g.href)}};w_f.pb={};w_f.pb.select=function(a){return a&&w_l(a,w_f.BACKLINK_ZIPPY_CLASS)};w_f.prototype.lb=function(a){a=a||window.event;this.Fa(a.srcElement||a.target)};w_f.prototype.Fa=function(a){var b=a.parentNode;while(b&&!w_l(b,w_f.BACKLINK_ITEM_ROOT_CLASS)){b=b.parentNode}if(!b)return;if(w_l(b,w_f.BACKLINK_EXPANDED_CLASS)){w_y(b,w_f.BACKLINK_EXPANDED_CLASS);w_q(b,w_f.BACKLINK_COLLAPSED_CLASS)}else{w_q(b,w_f.BACKLINK_EXPANDED_CLASS);w_y(b,w_f.BACKLINK_COLLAPSED_CLASS)}};w_f.prototype.h=function(){var a=this.a.m("blog-pager-newer-link");if(a&&this.$(a)){a.onclick=this.aa.bind(this)}var b=this.a.m("blog-pager-older-link");if(b&&this.$(b)){b.onclick=this.aa.bind(this)}if(this.wb){this.a.p("backlinks",{postID:this.u.data.postId})}};w_f.prototype.$=function(a){var b=a.href;return b.indexOf("/search?")>-1};w_f.prototype.aa=function(a){a=a||window.event;var b=a.target||a.srcElement;this.a.p("nextposts",{path:b.href});return false};w_f.prototype.Ba=function(a){var b="";if(document.selection){b=document.selection.createRange().text}else if(window.getSelection){b=window.getSelection()}else if(document.getSelection){b=document.getSelection()}window.open(a+"?t="+encodeURIComponent(b)+"&u="+encodeURIComponent(window.location.href)+"&n="+encodeURIComponent(document.title),"bloggerForm","scrollbars=no,width=475,height=300,top=175,left=75,status=yes,resizable=yes");return false};var _BlogView=w_f;function w_u(a){this.a=a}w_u.WIDGET_TYPE_NAME="CustomSearch";w_u.prototype.d=function(){return w_u.WIDGET_TYPE_NAME};w_u.prototype.b=function(){return this.a};w_u.prototype.f=function(){return false};w_u.prototype.c=function(a,b){if(a=="configure"){this.a.g(b)}};w_u.prototype.h=function(){if(!window._UDS_bootstrapped){var a;if(window.location.host.match(/blogger\.com$/)){a="ABQIAAAAVBJEtyJuLxgUs8KlzeA1lRQpkWYODHKIJGlKH8M-8R98XOejsxRkHYkMWejKfPos1RBuAqHID9wA9Q"}else{a=this.a.i().key}w_8("http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-vbpe&key="+a);w_Y(w_ta);window._UDS_bootstrapped=true}var b=document.getElementById("uds-searchControl");if(!b){b=document.createElement("DIV");b.id="uds-searchControl";var c=document.createElement("DIV");c.id="uds-searchResults";b.appendChild(c);var d=document.createElement("DIV");d.id="uds-searchClearResults";d.className="gsc-clear-button";d.innerHTML=" ";b.appendChild(d);var e=document.getElementById("main");if(!e){e=document.getElementsByTagName("body")[0]}e.insertBefore(b,e.firstChild)}var f=this.b();if(!w_7()){w_Y(w_ba.bind(f))}else{window.setTimeout(w_ba.bind(f),0)}};function w_ba(){var a=new GSearchControl,b=this.i();if(b.includeBlog){var c=new GblogSearch;c.setUserDefinedLabel(b.thisBlogMsg);c.setSiteRestriction(b.blogUrl);a.addSearcher(c)}if(b.includePostLinks){var d=new GwebSearch;d.setUserDefinedLabel(b.linkedFromHereMsg);d.setSiteRestriction({crefUrl:b.blogUrl+"cse.xml"});a.addSearcher(d)}var e=b.linkLists;for(var f=0;f<e.length;f++){var g=new GwebSearch;g.setSiteRestriction({crefUrl:b.blogUrl+"cse.xml"},e[f].id.toLowerCase());g.setUserDefinedLabel(e[f].title);a.addSearcher(g)}if(b.includeWeb){var h=new GwebSearch;h.setUserDefinedLabel(b.theWebMsg);a.addSearcher(h)}var i=new GSearchForm(false,this.A("form")),j=new GdrawOptions;j.setDrawMode(GSearchControl.DRAW_MODE_TABBED);j.setInput(i.input);a.setNoResultsString(GSearchControl.NO_RESULTS_DEFAULT_STRING);a.draw(document.getElementById("uds-searchResults"),j);i.input.onkeyup=(i.input.onpaste=null);i.setOnSubmitCallback(null,w_L(w_xa,null,a));document.getElementById("uds-searchClearResults").onclick=w_L(w_wa,null,a);w_0(false)}function w_xa(a){w_0(true);return a.submit()}function w_wa(a){a.clearAllResults();w_0(false)}function w_0(a){document.getElementById("uds-searchClearResults").style.display=a?"inline":"none"}var _CustomSearchView=w_u;_CustomSearchView._Configure=_CustomSearchView.Configure;function w_s(a){this.a=a;this.e=a.j()}w_s.WIDGET_TYPE_NAME="Image";w_s.prototype.b=function(){return this.a};w_s.prototype.d=function(){return w_s.WIDGET_TYPE_NAME};w_s.prototype.f=function(){return false};w_s.prototype.h=function(){if(this.e.data.resize!="true"){return}var a=this.a.m(this.e.instanceId+"_img"),b=this.e.rootElement;if(!a||!b){return}var c;if(document.defaultView){c=parseInt(document.defaultView.getComputedStyle(b,null).width,10)}else if(b.currentStyle){a.style.display="none";c=b.offsetWidth;a.style.display=""}else{return}if(a.width>c){a.height=Math.round(c/a.width*a.height);a.width=c}a.style.visibility="visible"};w_s.prototype.c=function(a,b){if(a=="configure"){this.a.g(b)}};var _ImageView=w_s;var w_W="imageChoiceTable",w_D="imgUrlText",w_K="picDiv";var w_h=null,w_F,w_z,w_E,w_O,_SIV_sectionWidth;function _SIV_setConfigurationOptions(){if(w_h==null){w_e.SetError(w_D,WidgetMessages.SIV_NO_IMAGE);return}var a=document.forms.config.widgetId.value,b=_SIV_createConfigurationOptions(document.getElementById("title").value,document.getElementById("imageCaption").value);w_.SaveWidget(b,a,w_s.WIDGET_TYPE_NAME)}function _SIV_createConfigurationOptions(a,b){var c=document.forms.config.securityToken.value;if(w_h==null){return}if(w_.IsOpenerReachable(window)){var d=document.getElementById("sectionId").value;_SIV_sectionWidth=window.opener.document.getElementById(d).clientWidth}var e=w_F,f=w_z,g=w_E,h=document.getElementById("checkShrink").checked;if(h){if(w_O){e=w_O;f=w_h.width;g=w_h.height}else if(f>_SIV_sectionWidth){var i=_SIV_sectionWidth/w_z;f=_SIV_sectionWidth;g=Math.round(w_E*i)}}var j={originalUrl:w_F,originalWidth:w_z,originalHeight:w_E,displayUrl:e,displayWidth:f,displayHeight:g,sectionWidth:_SIV_sectionWidth,shrinkToFit:h,securityToken:c};if(a){j.title=a}if(b){j.caption=b}return j}function w_pa(){var a=document.getElementById(w_D),b=a.value;if(!b||b.length==0||b=="http://"){return null}if(b.substring(0,4)!="http"){b="http://"+b}return b}var w_4,w_5;function _SIV_imgUrlTextOnKeyUp(a,b){var c=a||window.event;if(c.keyCode==9)return;document.getElementById("fromWeb").checked="true";if(w_5!=null){window.clearTimeout(w_5)}w_5=window.setTimeout(function(){var d=document.getElementById(w_D).value;if(w_4!=d.toLowerCase()){_SIV_resetPhotoMetadata();w_N(w_pa());w_4=d.toLowerCase()}},1000)}function _SIV_startAnimation(){var a=document.getElementById("picImg");a.src="img/icon_inprogress.gif";a.style.width="200px";a.style.height="200px";document.getElementById(w_K).style.height=a.style.height;_SIV_makeVisible(w_K);_SIV_makeInvisible(w_W)}function _SIV_stopAnimation(){_SIV_makeInvisible(w_K);_SIV_makeVisible(w_W);_SIV_makeInvisible("changeImageLink")}function _SIV_processUploadedImage(a,b,c,d){w_F=a;w_O=b;w_z=c;w_E=d;w_N(b)}var w_6=0;function w_N(a){if(w_h){w_h.onload=null;w_h.onerror=null;w_h=null}if(a){_SIV_startAnimation();w_h=new Image;w_h.onload=_SIV_imgOnLoad;w_h.onerror=_SIV_imgOnError;w_h.src=a}}function _SIV_changeImage(a){_SIV_makeVisible(w_W);_SIV_makeInvisible(w_K);a.style.display="none";document.getElementById(w_D).value="http://";w_h=null;var b=document.getElementById("uploadFrame").contentWindow;b.location.href=b.location.href}function _SIV_imgOnLoad(){if(this!=w_h)return;w_6=0;w_h.onload=null;w_h.error=null;var a=w_h.width,b=w_h.height;if(w_z==-1){w_z=a;w_E=b}if(w_F==""){w_F=w_h.src}w_e.ClearError(w_D);var c=document.getElementById("picImg");if(a<300&&b<300){c.style.height=_SIV_px(b);c.style.width=_SIV_px(a)}else if(b>a){var d=a/b;c.style.height=_SIV_px(300);c.style.width=_SIV_px(300*d)}else{var d=b/a;c.style.width=_SIV_px(300);c.style.height=_SIV_px(300*d)}var e=document.getElementById(w_K);e.style.height=_SIV_px(c.height);c.src=w_h.src;_SIV_makeVisible(w_K);_SIV_makeInvisible(w_W);_SIV_makeVisible("changeImageLink")}function _SIV_imgOnError(){if(this!=w_h)return;var a=w_h.src;if(w_6++<2){window.setTimeout(function(){w_N(a)},2000);return}w_6=0;w_h=null;w_e.SetError(w_D,WidgetMessages.SIV_INVALID_URL);_SIV_stopAnimation()}function _SIV_initializeWindow(a,b,c,d,e){w_F=b;w_z=c;w_E=d;_SIV_sectionWidth=e;var f=document.getElementById(w_D);if(a!="http://"&&a!=b){w_O=a;w_N(a)}else if(f.value!=""){w_N(w_pa());w_4=f.value;document.getElementById("title").focus()}}function _SIV_initFrame(){var a=document.getElementById("uploadFrame");a.height=a.contentWindow.document.body.scrollHeight;a.allowTransparency=true}function _SIV_px(a){return Math.round(a)+"px"}function _SIV_makeVisible(a){document.getElementById(a).style.display="block"}function _SIV_makeInvisible(a){document.getElementById(a).style.display="none"}function _SIV_resetPhotoMetadata(){w_O="";w_F="";w_z=-1;w_E=-1}function _SIV_hasLoadedImage(){return w_h}function _SIV_fromPCTabHandler(a){var b=a||window.event;if(b.keyCode==9&&!b.shiftKey){w_qa(document.getElementById("uploadFrame")).getElementById("imageFileName").focus();return false}return true}function _SIV_fromWebTabHandler(a){var b=a||window.event;if(b.keyCode==9&&b.shiftKey){w_qa(document.getElementById("uploadFrame")).getElementById("imageFileName").focus();return false}return true}function w_qa(a){var b=a.contentWindow||a.contentDocument;if(b.document){b=b.document}return b};function w_m(a){this.a=a;this.e=a.j()}w_m.WIDGET_TYPE_NAME="Header";w_m.prototype.d=function(){return w_m.WIDGET_TYPE_NAME};w_m.prototype.f=function(){return false};w_m.prototype.b=function(){return this.a};w_m.prototype.c=function(a,b){this.a.g(b)};w_m.FilterMap={title:w_e.GetRequiredStringFilter(),description:null,imagePlacement:null,useImage:null,securityToken:null};w_m.ConfigureWidget=function(){var a;if(_SIV_hasLoadedImage()){a=_SIV_createConfigurationOptions()}var b=document.forms.config.widgetId.value,c=document.forms.config.widgetType.value,d=w_e.ProcessForm(document.forms.config,w_m.FilterMap);if(d.success){for(var e in a){d.values[e]=a[e]}w_.SaveWidget(d.values,b,c);return true}else{return false}};w_m.hideImageOptions=function(){document.getElementById("imageOptions").style.display="none";return false};w_m.showImageOptions=function(){document.getElementById("imageOptions").style.display="";return false};w_m.removeImage=function(a){_SIV_makeInvisible("imagePlacementTable");_SIV_changeImage(a);_SIV_resetPhotoMetadata()};var _HeaderView=w_m;_HeaderView.prototype=w_m.prototype;_HeaderView._ConfigureWidget=_HeaderView.ConfigureWidget;_HeaderView._hideImageOptions=_HeaderView.hideImageOptions;_HeaderView._showImageOptions=_HeaderView.showImageOptions;_HeaderView._removeImage=_HeaderView.removeImage;function w_p(a,b){this.a=a;this.e=a.j();this.Qb=b}w_p.prototype.b=function(){return this.a};w_p.prototype.d=function(){return this.Qb};w_p.prototype.c=function(a,b){if(a=="configure"){this.a.g(b)}};w_p.ConfigureWidget=function(a){setFormAndSubmit();var b=document.forms.stuffform.widgetId.value,c=document.forms.stuffform.securityToken.value,d=document.getElementById("textarea"),e=document.getElementById("title"),f=d.value;if(a=="Text"){f=f.replace(/\n/g,"<br/>")}var g={content:f,title:e.value,securityToken:c};w_.SaveWidget(g,b,a)};function w_X(a){w_p.call(this,a,"Text")}w_X.inherits(w_p);w_X.ConfigureWidget=function(){w_p.ConfigureWidget("Text")};function w_V(a){w_p.call(this,a,"HTML")}w_V.inherits(w_p);w_V.ConfigureWidget=function(){w_p.ConfigureWidget("HTML")};var _TextView=w_X;_TextView.prototype=w_X.prototype;_TextView._ConfigureWidget=_TextView.ConfigureWidget;var _HTMLView=w_V;_HTMLView.prototype=w_V.prototype;_HTMLView._ConfigureWidget=_HTMLView.ConfigureWidget;function w_8(a){document.write('<script src="'+a+'" type="text/javascript"><\/script>')}function w_va(a){document.write('<style type="text/css"> @import url( "'+a+'" );</style>')}function w_Y(a){if(w_7()){w_k("Tried to add an onload after page loaded..")}else{var b=window;if(b.addEventListener){b.addEventListener("load",a,false)}else if(b.attachEvent){b.attachEvent("onload",a)}else{b.onload=a}}}function w_ta(){window._UDS_loaded=true}function w_7(){return window._UDS_loaded}function w_A(a){this.a=a}w_A.WIDGET_TYPE_NAME="VideoBar";w_A.prototype.d=function(){return w_A.WIDGET_TYPE_NAME};w_A.prototype.b=function(){return this.a};w_A.prototype.f=function(){return false};w_A.prototype.c=function(a,b){if(a=="configure"){this.a.g(b)}};w_A.prototype.h=function(){if(!window._UDS_bootstrapped){var a;if(window.location.host.match(/blogger\.com$/)){a="ABQIAAAAVBJEtyJuLxgUs8KlzeA1lRQpkWYODHKIJGlKH8M-8R98XOejsxRkHYkMWejKfPos1RBuAqHID9wA9Q"}else{a=this.a.i().key}w_8("http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-vbpe&key="+a);w_va("http://www.google.com/uds/css/gsearch.css");w_Y(w_ta);window._UDS_bootstrapped=true}if(!window._UDS_vb_bootstrapped){window._uds_vbw_donotrepair=true;w_8("http://www.google.com/uds/solutions/videobar/gsvideobar.js?mode=new");w_va("http://www.google.com/uds/solutions/videobar/gsvideobar.css");window._UDS_vb_bootstrapped=true}var b=document.getElementById("videoBar-player");if(!b){b=document.createElement("DIV");b.id="videoBar-player";b.innerHTML='<span class="videoBar-status">Loading...</span>';var c=document.getElementById("main");if(!c){c=document.getElementsByTagName("body")[0]}c.insertBefore(b,c.firstChild)}var d=this.b();if(!w_7()){w_Y(w_ua.bind(d))}else{window.setTimeout(w_ua.bind(d),0)}};function w_ua(){var a=this.A("bar"),b=this.i().format,c,d,e=this.i().expression;if(b=="VERTICAL"){c=false;d=GSvideoBar.THUMBNAILS_MEDIUM}else if(b=="HORIZONTAL-SMALL"){c=true;d=GSvideoBar.THUMBNAILS_SMALL}else if(b=="HORIZONTAL-MEDIUM"){c=true;d=GSvideoBar.THUMBNAILS_MEDIUM}var f={largeResultSet:false,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -