global.js 7.7 KB

12
  1. !function(e){function n(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var t=window.webpackJsonp;window.webpackJsonp=function(r,i,a){for(var s,c,l,u=0,f=[];u<r.length;u++)c=r[u],o[c]&&f.push(o[c][0]),o[c]=0;for(s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s]);for(t&&t(r,i,a);f.length;)f.shift()();if(a)for(u=0;u<a.length;u++)l=n(n.s=a[u]);return l};var r={},o={11:0};n.e=function(e){function t(){s.onerror=s.onload=null,clearTimeout(c);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var r=o[e];if(0===r)return new Promise(function(e){e()});if(r)return r[2];var i=new Promise(function(n,t){r=o[e]=[n,t]});r[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=r,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},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 r(e,n,t,r,o){window.open("http://service.weibo.com/share/share.php?platform=tsina&title="+e+"&url="+n+"&pic="+t+"&ralateUid="+r+"&appkey="+o)}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 o=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 o(".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 r(e.title,e.url,e.pic,e.ralateUid,e.appkey),!1}),$(".btn-shareweixin").on("click",function(){$(".articleWxshare").show()}),/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 r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<n.length;o++){var a=n[o];"number"==typeof a[0]&&r[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 r=e[t],o=h[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(c(r.parts[i],n))}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(c(r.parts[i],n));h[r.id]={id:r.id,refs:1,parts:a}}}}function r(e){for(var n=[],t={},r=0;r<e.length;r++){var o=e[r],i=o[0],a=o[1],s=o[2],c=o[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 o(e,n){var t=g(),r=m[m.length-1];if("top"===e.insertAt)r?r.nextSibling?t.insertBefore(n,r.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",o(e,n),n}function s(e){var n=document.createElement("link");return n.rel="stylesheet",o(e,n),n}function c(e,n){var t,r,o;if(n.singleton){var c=v++;t=b||(b=a(n)),r=l.bind(null,t,c,!1),o=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),r=f.bind(null,t),o=function(){i(t),t.href&&URL.revokeObjectURL(t.href)}):(t=a(n),r=u.bind(null,t),o=function(){i(t)});return r(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;r(e=n)}else o()}}function l(e,n,t,r){var o=t?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(n,o);else{var i=document.createTextNode(o),a=e.childNodes;a[n]&&e.removeChild(a[n]),a.length?e.insertBefore(i,a[n]):e.appendChild(i)}}function u(e,n){var t=n.css,r=n.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}function f(e,n){var t=n.css,r=n.sourceMap;r&&(t+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([t],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),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 o=r(e);return t(o,n),function(e){for(var i=[],a=0;a<o.length;a++){var s=o[a],c=h[s.id];c.refs--,i.push(c)}if(e){t(r(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=9d7d7e57