You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
181 KiB
2 lines
181 KiB
5 years ago
|
var NEWS_FEED=function(){"use strict";Date.now||(Date.now=function(){return+new Date}),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},r=function(){return n.apply(this instanceof i?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(i.prototype=this.prototype),r.prototype=new i,r});var e=function(n){var e,i=[],t=document,r=t.documentElement,o=r.doScroll,a="DOMContentLoaded",s="addEventListener",l="onreadystatechange",c="readyState",u=(o?/^loaded|^c/:/^loaded|c/).test(t[c]);function d(e){for(u=1;e=i.shift();)e()}return t[s]&&t[s](a,e=function(){t.removeEventListener(a,e,!1),d()},!1),o&&t.attachEvent(l,e=function(){/^c/.test(t[c])&&(t.detachEvent(l,e),d())}),n=o?function(t){self!=top?u?t():i.push(t):function(){try{r.doScroll("left")}catch(e){return setTimeout(function(){n(t)},50)}t()}()}:function(e){u?e():i.push(e)}},h=e();function a(e,t,n,i){i=!0===i;var r=this;if(window.addEventListener)return e.addEventListener(t,function(e){n.call(r,e)},i);e.attachEvent("on"+t,function(){var e=window.event;e.target=e.srcElement,n.call(r,e)})}function s(e,t,n){if(window.removeEventListener)return e.removeEventListener(t,n,!1);e.detachEvent("on"+t,n)}function p(e){var t="QIHOO_FEED_CSS",n=document.getElementById(t);if(null==n){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.id=t,i.appendChild(r),n=document.getElementById(t)}n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function r(e){return"[object Array]"===Object.prototype.toString.call(e)}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(e){return"[object String]"===Object.prototype.toString.call(e)}function m(e){if(r(e))return 0===e.length;if(l(e))return""===e;if(o(e)){var t=0;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){t++;break}return 0===t}return!1}function _(e){return null===e||e===undefined}function t(){function e(e){var t,n=1,i=0;if(e)for(n=0,t=e.length-1;0<=t;t--)n=0!=(i=266338304&(n=(n<<6&268435455)+(i=e.charCodeAt(t))+(i<<14)))?n^i>>21:n;return n}return(""+e(document.referrer)+(new Date).getTime()+e(document.cookie)).substr(0,32)}var g="QIHOO__WEB__SO__",c={singleColumn:{index:[1,4,7,10],feedNum:8,adNum:4},splitColumn:{index:[1,4,7,10,13,16,19,22],feedNum:17,adNum:8},multiColumn:{index:[1,4,7,10,13,16,19,22],feedNum:16,adNum:8},thinSingleColumn:{index:[1,4,7,10],feedNum:8,adNum:4}},n=2,i=0;window[g]||(window[g]={},window[g].UID=t(),window[g].displayShowId=[]);var v=window[g],y=[{"data-feedkey":"youlike",name:"推荐"},{"data-feedkey":"militery",name:"军事"},{"data-feedkey":"fun",name:"娱乐"},{"data-feedkey":"social",name:"社会"},{"data-feedkey":"funny",name:"搞笑"},{"data-feedkey":"history",name:"历史"},{"data-feedkey":"car",name:"汽车"},{"data-feedkey":"sport",name:"体育"}],b=".info-flow-nav{\n overflow: hidden;\n width: {w}px;\n height: 30px;\n border-bottom: 1px dotted #e5e5e5;\n background: {tabBackground};\n line-height: 30px;\n}\n.info-flow-nav .tab-line{\n float: right;\n width: 1px;\n height: 20px;\n background: #f0f0f0;\n margin-top: 10px;\n}\n.info-flow-nav .info-flow-tab{\n float: left;\n width: {tabWidth}px;\n text-align: center;\n cursor: pointer;\n font-size: {tabFontSize};\n color: {tabFontColor};\n font-family:{tabFontFamily};\n border-right:1px solid #e5e5e5; \n}\n.info-flow-nav .info-flow-tab:hover{\n color: {tabHover};\n}\n.info-flow-nav .actived{\n background: {tabActive};\n color: white;\n}";function w(e,o){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"").replace(/([\.?(\w|\d|:|_|\-|\s)+][,\.?(\w|\d|:|_|\-|\s)+]*){/g,function(e,t){for(var n=t.split(","),i="",r=0;r<n.length;r++)i+="."+o+" "+n[r]+",";return i=i.slice(0,i.length-1),i+="{"})}var x=function(e,a,t){return t=t||/\{([^\{\}]*)\}/g,e.replace(t,function(e,t
|
||
|
;
|