!function(a){"use strict";function u(r,t,e,n){var o=a(e,t);o.adddata(r),o.make(),n=n||0;var i=o.getmodulecount(),h=o.getmodulecount()+2*n;this.text=r,this.level=t,this.version=e,this.modulecount=h,this.isdark=function(r,t){return t-=n,!((r-=n)<0||i<=r||t<0||i<=t)&&o.isdark(r,t)},this.addblank=function(a,u,f,c){var s=this.isdark,l=1/h;this.isdark=function(r,t){var e=t*l,n=r*l,o=e+l,i=n+l;return s(r,t)&&(o")[0].getcontext("2d");i.font=o;var a=i.measuretext(e.label).width,u=e.msize,f=a/n,c=(1-f)*e.mposx,s=(1-u)*e.mposy,l=c+f,h=s+u;1===e.mode?r.addblank(0,s-.01,n,h+.01):r.addblank(c-.01,s-.01,.01+l,h+.01),t.fillstyle=e.fontcolor,t.font=o,t.filltext(e.label,c*n,s*n+.75*e.msize*n)}(r,t,e):3!==n&&4!==n||function(r,t,e){var n=e.size,o=e.image.naturalwidth||1,i=e.image.naturalheight||1,a=e.msize,u=a*o/i,f=(1-u)*e.mposx,c=(1-a)*e.mposy,s=f+u,l=c+a;3===e.mode?r.addblank(0,c-.01,n,l+.01):r.addblank(f-.01,c-.01,.01+s,l+.01),t.drawimage(e.image,f*n,c*n,u*n,a*n)}(r,t,e)}function c(r,t,e,n,o,i,a,u){r.isdark(a,u)&&t.rect(n,o,i,i)}function s(r,t,e,n,o,i,a,u){var f=r.isdark,c=n+i,s=o+i,l=e.radius*i,h=a-1,g=a+1,d=u-1,v=u+1,p=f(a,u),w=f(h,d),m=f(h,u),y=f(h,v),k=f(a,v),t=f(g,v),b=f(g,u),c=f(g,d),b=f(a,d);p?function(r,t,e,n,o,i,a,u,f,c){a?r.moveto(t+i,e):r.moveto(t,e),u?(r.lineto(n-i,e),r.arcto(n,e,n,o,i)):r.lineto(n,e),f?(r.lineto(n,o-i),r.arcto(n,o,t,o,i)):r.lineto(n,o),c?(r.lineto(t+i,o),r.arcto(t,o,t,e,i)):r.lineto(t,o),a?(r.lineto(t,e+i),r.arcto(t,e,n,e,i)):r.lineto(t,e)}(t,n,o,c,s,l,!m&&!b,!m&&!k,!b&&!k,!b&&!b):function(r,t,e,n,o,i,a,u,f,c){a&&(r.moveto(t+i,e),r.lineto(t,e),r.lineto(t,e+i),r.arcto(t,e,t+i,e,i)),u&&(r.moveto(n-i,e),r.lineto(n,e),r.lineto(n,e+i),r.arcto(n,e,n-i,e,i)),f&&(r.moveto(n-i,o),r.lineto(n,o),r.lineto(n,o-i),r.arcto(n,o,n-i,o,i)),c&&(r.moveto(t+i,o),r.lineto(t,o),r.lineto(t,o-i),r.arcto(t,o,t+i,o,i))}(t,n,o,c,s,l,m&&b&&w,m&&k&&y,b&&k&&t,b&&b&&c)}function e(r,t){var e=g(t.text,t.eclevel,t.minversion,t.maxversion,t.quiet);if(!e)return null;var n=d(r).data("qrcode",e),o=n[0].getcontext("2d");return i(e,o,t),function(r,t,e){var n,o,i=r.modulecount,a=e.size/i,u=c;for(l&&0
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
",wechatqrcodesize:100,mobilesites:[],sites:["weibo","qq","wechat","tencent","douban","qzone","linkedin","diandian","facebook","twitter","google"],disabled:[],initialized:!1},n=f.extend({},e,r),a={qzone:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={{url}}&title={{title}}&desc={{description}}&summary={{summary}}&site={{source}}&pics={{image}}",qq:"http://connect.qq.com/widget/shareqq/index.html?url={{url}}&title={{title}}&source={{source}}&desc={{description}}&pics={{image}}",tencent:"http://share.v.t.qq.com/index.php?c=share&a=index&title={{title}}&url={{url}}&pic={{image}}",weibo:"https://service.weibo.com/share/share.php?url={{url}}&title={{title}}&pic={{image}}&appkey={{weibokey}}",wechat:"javascript:;",douban:"http://shuo.douban.com/!service/share?href={{url}}&name={{title}}&text={{description}}&image={{image}}&starid=0&aid=0&style=11",diandian:"http://www.diandian.com/share?lo={{url}}&ti={{title}}&type=link",linkedin:"http://www.linkedin.com/sharearticle?mini=true&ro=true&title={{title}}&url={{url}}&summary={{summary}}&source={{source}}&armin=armin",facebook:"https://www.facebook.com/sharer/sharer.php?u={{url}}&title={{title}}&description={{description}}&caption={{subhead}}&link={{url}}&picture={{image}}",twitter:"https://twitter.com/intent/tweet?text={{title}}&url={{url}}&via={{site_url}}",google:"https://plus.google.com/share?url={{url}}"},u={qzone:"qq空间",qq:"qq",tencent:"腾讯微博",weibo:"微博",wechat:"微信",douban:"豆瓣",diandian:"点点",linkedin:"linkedin",facebook:"facebook",twitter:"twitter",google:"google"};this.each(function(){if(f(this).data("initialized"))return!0;var r=f.extend({},n,f(this).data());r.imageselector&&(r.image=f(r.imageselector).map(function(){return f(this).prop("src")}).get().join("||"));var t=f(this).addclass("share-component social-share");!function(o,i){var r=function(r){0===r.mobilesites.length&&r.sites.length&&(r.mobilesites=r.sites);var n=(f(window).width()<=768?r.mobilesites:r.sites.length?r.sites:[]).slice(0),t=r.disabled;"string"==typeof n&&(n=n.split(/\s*,\s*/));"string"==typeof t&&(t=t.split(/\s*,\s*/));/micromessenger/i.test(navigator.useragent)&&t.push("wechat");return t.length&&f.each(t,function(r,t){var e=f.inarray(t,n);-1!==e&&n.splice(e,1)}),n}(i);if("prepend"==i.mode&&r.reverse(),!r.length)return;f.each(r,function(r,t){var e=function(r,t){var e=a[r];for(var n in t.summary=t.description,t)if(t.hasownproperty(n)){var o=r+n.replace(/^[a-z]/,function(r){return r.touppercase()}),i=encodeuricomponent(void 0===t[o]?t[n]:t[o]);e=e.replace(new regexp("{{"+n.touppercase()+"}}","g"),i)}return e}(t,i),n=i.initialized?o.find(".icon-"+t):f('');if(!n.length)return!0;n.prop("aria-label","分享到 "+u[t]),n.prop("href",e),"wechat"===t?n.prop("tabindex",-1):n.prop("target","_blank"),i.initialized||("prepend"==i.mode?o.prepend(n):o.append(n))})}(t,r),function(r,t){var e=r.find("a.icon-wechat");if(!e.length)return;e.append('