!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").attr("width",r.size).attr("height",r.size),r)}function n(r){return o&&"canvas"===r.render?t(r):o&&"image"===r.render?function(r){return d("").attr("src",t(r)[0].todataurl("image/png"))}(r):function(r){var t=g(r.text,r.eclevel,r.minversion,r.maxversion,r.quiet);if(!t)return null;var e,n,o=r.size,i=r.background,a=math.floor,u=t.modulecount,f=a(o/u),c=a(.5*(o-f*u)),s={position:"relative",left:0,top:0,padding:0,margin:0,width:o,height:o},l={position:"absolute",padding:0,margin:0,width:f,height:f,"background-color":r.fill},h=d("
").data("qrcode",t).css(s);for(i&&h.css("background-color",i),e=0;e").css(l).css({left:c+n*f,top:c+e*f}).appendto(h);return h}(r)}var r,d=jquery,o=(r=document.createelement("canvas"),boolean(r.getcontext&&r.getcontext("2d"))),l="[object opera]"!==object.prototype.tostring.call(window.opera),f={render:"canvas",minversion:1,maxversion:40,eclevel:"l",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:0,quiet:0,mode:0,msize:.1,mposx:.5,mposy:.5,label:"no label",fontname:"sans",fontcolor:"#000",image:null};d.fn.qrcode=function(r){var t=d.extend({},f,r);return this.each(function(){"canvas"===this.nodename.tolowercase()?e(this,t):d(this).append(n(t))})}}(function(){var r,t=function(){function w(n,o){if(void 0===n.length)throw new error(n.length+"/"+o);var t=function(){for(var r=0;r>e&1);s[math.floor(e/3)][e%3+l-8-3]=n}for(e=0;e<18;e+=1){n=!r&&1==(t>>e&1);s[e%3+l-8-3][math.floor(e/3)]=n}},d=function(r,t){for(var e=a<<3|t,n=t.getbchtypeinfo(e),o=0;o<15;o+=1){var i=!r&&1==(n>>o&1);o<6?s[o][8]=i:o<8?s[o+1][8]=i:s[l-15+o][8]=i}for(o=0;o<15;o+=1){i=!r&&1==(n>>o&1);o<8?s[8][l-o-1]=i:o<9?s[8][15-o-1+1]=i:s[8][15-o-1]=i}s[l-8][8]=!r},v=function(r,t){for(var e=-1,n=l-1,o=7,i=0,a=t.getmaskfunction(t),u=l-1;0>>o&1)),a(n,u-f)&&(c=!c),s[n][u-f]=c,-1==(o-=1)&&(i+=1,o=7)}if((n+=e)<0||l<=n){n-=e,e=-e;break}}},p=function(r,t,e){for(var n=c.getrsblocks(r,t),o=b(),i=0;i8*u)throw new error("code length overflow. ("+o.getlengthinbits()+">"+8*u+")");for(o.getlengthinbits()+4<=8*u&&o.put(0,4);o.getlengthinbits()%8!=0;)o.putbit(!1);for(;!(o.getlengthinbits()>=8*u)&&(o.put(236,8),!(o.getlengthinbits()>=8*u));)o.put(17,8);return function(r,t){for(var e=0,n=0,o=0,i=new array(t.length),a=new array(t.length),u=0;u',e+="";for(var n=0;n";for(var o=0;o';e+=""}return(e+="")+""},f.createimgtag=function(o,r){o=o||2,r=void 0===r?4*o:r;var t=f.getmodulecount()*o+2*r,i=r,a=t-r;return a(t,t,function(r,t){if(i<=r&&r>>8),t.push(255&o)):t.push(a)}}return t}};function g(){var e=new array,o={writebyte:function(r){e.push(255&r)},writeshort:function(r){o.writebyte(r),o.writebyte(r>>>8)},writebytes:function(r,t,e){t=t||0,e=e||r.length;for(var n=0;n>>t!=0)throw new error("length over");for(;8<=n+t;)e.writebyte(255&(r<>>=8-n,n=o=0;o|=r<>>7-r%8&1)},put:function(r,t){for(var e=0;e>>t-e-1&1))},getlengthinbits:function(){return n},putbit:function(r){var t=math.floor(n/8);e.length<=t&&e.push(0),r&&(e[t]|=128>>>n%8),n+=1}};return o},l=function(r){var t=a,e=o.stringtobytes(r),n={getmode:function(){return t},getlength:function(r){return e.length},write:function(r){for(var t=0;t=e.length){if(0==i)return-1;throw new error("unexpected end of file./"+i)}var r=e.charat(n);if(n+=1,"="==r)return i=0,-1;r.match(/^\s$/)||(o=o<<6|a(r.charcodeat(0)),i+=6)}var t=o>>>i-8&255;return i-=8,t}},a=function(r){if(65<=r&&r<=90)return r-65;if(97<=r&&r<=122)return r-97+26;if(48<=r&&r<=57)return r-48+52;if(43==r)return 62;if(47==r)return 63;throw new error("c:"+r)};return t},a=function(r,t,e,n){for(var o=h(r,t),i=0;i>>o-6),o-=6},r.flush=function(){if(0"};function x(r){for(var t=0;0!=r;)t+=1,r>>>=1;return t}return o}();return r=function(){return t},"function"==typeof define&&define.amd?define([],r):"object"==typeof exports&&(module.exports=r()),t.stringtobytes=function(r){return function(r){for(var t=[],e=0;e>6,128|63&n):n<55296||57344<=n?t.push(224|n>>12,128|n>>6&63,128|63&n):(e++,n=65536+((1023&n)<<10|1023&r.charcodeat(e)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t}(r)},t}()),function(f){f.fn.share=function(r){var t=f(document.head),e={url:location.href,site_url:location.origin,source:t.find("[name=site], [name=site]").attr("content")||document.title,title:t.find("[name=title], [name=title]").attr("content")||document.title,description:t.find("[name=description], [name=description]").attr("content")||"",image:f("img:first").prop("src")||"",imageselector:void 0,weibokey:"",wechatqrcodetitle:"打开微信扫一扫,分享",wechatqrcodehelper:"

微信里点“发现”,扫一扫

二维码将本文分享至好友或朋友圈

",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 ishare");!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('
'+t.wechatqrcodetitle+'
'+t.wechatqrcodehelper+"
"),e.find(".qrcode").qrcode({render:"image",size:t.wechatqrcodesize,text:t.url}),e.offset().top<100&&e.find(".wechat-qrcode").addclass("bottom")}(t,r),f(this).data("initialized",!0)})},f(function(){f(".share-component,.ishare").share()})}(jquery); //判断正文版块高度 $(document).ready(function() {var ah = $("#ishare-1").parent().innerheight();if ( ah <= 250 ) {$("#ishare-1").prepend("

 

 

 

");}});