This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typeof window._sohuHD=="undefined"&&(window._sohuHD={}),_sohuHD.AD={init:function(){var e=Array.prototype.slice.call(arguments);_sohuHD.AD.ready(function(){_sohuHD.AD.init.apply(_sohuHD.AD,e)})},ready:function(e){kao(!1,"http://js.tv.itc.cn/base/core/gg13051301.js",function(){e&&e()})}};var playerADCallback=function(e){e/1==0?(messagebus.publish("playerad.start"),setTimeout(function(){messagebus.publish("playerad.over")},48e3)):messagebus.publish("playerad.over")};(function(){var e={1:{left:"http://images.sohu.com/bill/s2012/yule/dongbochao/chanel/0722/Chanel_Chance_140x480-green.jpg",right:"http://images.sohu.com/bill/s2012/yule/dongbochao/chanel/0722/Chanel_Chance_140x480-green.jpg",url:"http://e.weibo.com/1892475055/app_171915250"},2:{left:"http://images.sohu.com/ytv/SH/CHANEL/14048020130614065319.jpg",right:"http://images.sohu.com/ytv/SH/CHANEL/14048020130614065319.jpg",url:"http://e.weibo.com/1892475055/app_171915250"},3:{left:"http://images.sohu.com/ytv/SH/CHANEL/14048020130614065238.jpg",right:"http:// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //2013-8-7 10:40 wyw | |
| typeof sohuHD=="undefined"&&(sohuHD={}),function(e){typeof sohuHD.count=="undefined"&&(sohuHD.count={formatCount:function(e){var t=/(\d{1,3})(?=(\d{3})+(?:$|\.))/g;return e>=1e5?e=parseInt(e/1e4).toString().replace(t,"$1,")+"\u4e07":e=e.toString().replace(t,"$1,"),e},getCount:function(t,n,r,i){if(t==null||t.length==0)return;var s=i||"",o=[],u=[],a=/(\d{1,3})(?=(\d{3})+(?:$|\.))/g;t.each(function(t,r){if(!e(r).attr("rel"))return;u.push(r),o.push(e(r).attr("rel").split("_")[0]),e(r).attr("id",n+e(r).attr("rel"))});if(o.length<=0)return;e.ajax({type:"GET",dataType:"script",url:r+o.join(",")+"&jsonp="+n+s+"&type=2",cache:!0,success:function(){n=="count"&&o.length==1?e("#"+n+o[0]).html(sohuHD.count.formatCount(window[n+s])).show():window[n+s]&&window[n+s].videos&&e.each(window[n+s].videos,function(t,r){n=="count"?e.each(u,function(t,i){e(i).attr("id").indexOf(n+r.pid)==0&&e(i).html(sohuHD.count.formatCount(r.count)).show()}):e.each(u,function(t,i){e(i).attr("id").indexOf(n+r.videoId)==0&&e(i). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| getUUid = function(){ | |
| function UUID(){ | |
| this.id = this.createUUID(); | |
| } | |
| UUID.prototype.valueOf = function(){ return this.id; } | |
| UUID.prototype.toString = function(){ return this.id; } | |
| UUID.prototype.createUUID = function(){ | |
| var dg = new Date(1582, 10, 15, 0, 0, 0, 0); | |
| var dc = new Date(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |