global.js 7.9 KB

12
  1. !function(e){function n(t){if(o[t])return o[t].exports;var r=o[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var t=window.webpackJsonp;window.webpackJsonp=function(o,i,a){for(var s,c,l,f=0,u=[];f<o.length;f++)c=o[f],r[c]&&u.push(r[c][0]),r[c]=0;for(s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s]);for(t&&t(o,i,a);u.length;)u.shift()();if(a)for(f=0;f<a.length;f++)l=n(n.s=a[f]);return l};var o={},r={11:0};n.e=function(e){function t(){s.onerror=s.onload=null,clearTimeout(c);var n=r[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}var o=r[e];if(0===o)return new Promise(function(e){e()});if(o)return o[2];var i=new Promise(function(n,t){o=r[e]=[n,t]});o[2]=i;var a=document.getElementsByTagName("head")[0],s=document.createElement("script");s.type="text/javascript",s.charset="utf-8",s.async=!0,s.timeout=12e4,n.nc&&s.setAttribute("nonce",n.nc),s.src=n.p+"js/"+e+".js?v="+{0:"11102b9f",1:"11102b9f",2:"11102b9f",3:"11102b9f",4:"11102b9f",5:"11102b9f",6:"11102b9f",7:"11102b9f",8:"11102b9f",9:"11102b9f",10:"11102b9f"}[e];var c=setTimeout(t,12e4);return s.onerror=s.onload=t,a.appendChild(s),i},n.m=e,n.c=o,n.i=function(e){return e},n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n.oe=function(e){throw console.error(e),e},n(n.s=18)}({1:function(e,n,t){"use strict";function o(e,n,t,o,r){window.open("http://service.weibo.com/share/share.php?platform=tsina&title="+e+"&url="+n+"&pic="+t+"&ralateUid="+o+"&appkey="+r)}t(13),"1"===localStorage.nightSkin&&($("body").addClass("night-skin"),$("header .logo img, footer .blogo img").each(function(){var e=$(this).attr("src");$(this).attr("src",$(this).data("wlogo")).data("wlogo",e)}));var r=window.ClipboardJS;if($(document).on("click","#tonight",function(){$("body").hasClass("night-skin")?($("body").removeClass("night-skin"),$("header .logo img, footer .blogo img").each(function(){var e=$(this).attr("src");$(this).attr("src",$(this).data("wlogo")).data("wlogo",e)}),localStorage.nightSkin=0):($("body").addClass("night-skin"),$("header .logo img, footer .blogo img").each(function(){var e=$(this).attr("src");$(this).attr("src",$(this).data("wlogo")).data("wlogo",e)}),localStorage.nightSkin=1)}),$(".m-menu .icon-search").on("click",function(){$(".m-search-layer").css("display","flex")}),$(".m-search-layer .icon-close").on("click",function(){$(".m-search-layer").css("display","none")}),$("header .icon-weixin").click(function(){return $(".share-layer").closest(".globalWxshare").show(),!1}),$(".mask").on("click",function(){return $(this).hide(),!1}),$(".mask").on("click",".layer",function(){return!1}),$(".btn-link").length){var i=new r(".btn-link");i.on("success",function(e){console.info("Action:",e.action),console.info("Text:",e.text),console.info("Trigger:",e.trigger),window.toastr.success("复制成功"),e.clearSelection()}),i.on("error",function(e){console.error("Action:",e.action),console.error("Trigger:",e.trigger)})}$(".btn-shareweibo").on("click",function(){var e=window.config.wbshare;return o(e.title,e.url,e.pic,e.ralateUid,e.appkey),!1}),$(".btn-shareweixin").on("click",function(){$(".articleWxshare").show()}),$(".icon-bilibili").attr("href",window.config.bili),$(".icon-douyin").attr("href",window.config.douyin),$(".icon-ins").attr("href",window.config.ins_link),$(".ins-layer").text(window.config.ins),/iphone|android/.test(navigator.userAgent.toLocaleLowerCase())||($(".inscont").on("click","a",function(){return $(".ins-layer").show(),!1}),$(document).on("click",function(){$(".ins-layer").hide()})),$(".btn-shareweibo,.icon-bilibili,.icon-ins,.icon-douyin,.btn-shareweixin,.btn-link").on("click",function(){var e=$(this).data("sharetype");$.getJSON(window.config.host+"content.share_add&name="+window.config.wbshare.title+"&link="+window.config.wbshare.url+"&json=1&type="+e)}),$(".ad-swiper .icon-close").on("click",function(){return $(this).parent().hide().next(".common-tit").addClass("notpborder"),!1}),$(".m-search-layer form").on("submit",function(){return location.href="?l=search&v="+$(this).find("input").val(),!1})},13:function(e,n){},18:function(e,n,t){e.exports=t(1)},26:function(e,n,t){"use strict";e.exports=function(){var e=[];return e.toString=function(){for(var e=[],n=0;n<this.length;n++){var t=this[n];t[2]?e.push("@media "+t[2]+"{"+t[1]+"}"):e.push(t[1])}return e.join("")},e.i=function(n,t){"string"==typeof n&&(n=[[null,n,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<n.length;r++){var a=n[r];"number"==typeof a[0]&&o[a[0]]||(t&&!a[2]?a[2]=t:t&&(a[2]="("+a[2]+") and ("+t+")"),e.push(a))}},e}},27:function(e,n){function t(e,n){for(var t=0;t<e.length;t++){var o=e[t],r=h[o.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](o.parts[i]);for(;i<o.parts.length;i++)r.parts.push(c(o.parts[i],n))}else{for(var a=[],i=0;i<o.parts.length;i++)a.push(c(o.parts[i],n));h[o.id]={id:o.id,refs:1,parts:a}}}}function o(e){for(var n=[],t={},o=0;o<e.length;o++){var r=e[o],i=r[0],a=r[1],s=r[2],c=r[3],l={css:a,media:s,sourceMap:c};t[i]?t[i].parts.push(l):n.push(t[i]={id:i,parts:[l]})}return n}function r(e,n){var t=g(),o=m[m.length-1];if("top"===e.insertAt)o?o.nextSibling?t.insertBefore(n,o.nextSibling):t.appendChild(n):t.insertBefore(n,t.firstChild),m.push(n);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");t.appendChild(n)}}function i(e){e.parentNode.removeChild(e);var n=m.indexOf(e);n>=0&&m.splice(n,1)}function a(e){var n=document.createElement("style");return n.type="text/css",r(e,n),n}function s(e){var n=document.createElement("link");return n.rel="stylesheet",r(e,n),n}function c(e,n){var t,o,r;if(n.singleton){var c=v++;t=b||(b=a(n)),o=l.bind(null,t,c,!1),r=l.bind(null,t,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(t=s(n),o=u.bind(null,t),r=function(){i(t),t.href&&URL.revokeObjectURL(t.href)}):(t=a(n),o=f.bind(null,t),r=function(){i(t)});return o(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;o(e=n)}else r()}}function l(e,n,t,o){var r=t?"":o.css;if(e.styleSheet)e.styleSheet.cssText=w(n,r);else{var i=document.createTextNode(r),a=e.childNodes;a[n]&&e.removeChild(a[n]),a.length?e.insertBefore(i,a[n]):e.appendChild(i)}}function f(e,n){var t=n.css,o=n.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}function u(e,n){var t=n.css,o=n.sourceMap;o&&(t+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var r=new Blob([t],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(r),i&&URL.revokeObjectURL(i)}var h={},d=function(e){var n;return function(){return void 0===n&&(n=e.apply(this,arguments)),n}},p=d(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),g=d(function(){return document.head||document.getElementsByTagName("head")[0]}),b=null,v=0,m=[];e.exports=function(e,n){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");n=n||{},void 0===n.singleton&&(n.singleton=p()),void 0===n.insertAt&&(n.insertAt="bottom");var r=o(e);return t(r,n),function(e){for(var i=[],a=0;a<r.length;a++){var s=r[a],c=h[s.id];c.refs--,i.push(c)}if(e){t(o(e),n)}for(var a=0;a<i.length;a++){var c=i[a];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete h[c.id]}}}};var w=function(){var e=[];return function(n,t){return e[n]=t,e.filter(Boolean).join("\n")}}()}});
  2. //# sourceMappingURL=global.js.map?v=d3fbc6b8