11/*
2- 功能: 为博客自定义功能,比如推荐此文,Scrollbar;新功能添加在此
2+ 功能: 为博客自定义功能,比如推荐此文,Scrollbar;roadmap: 新功能添加在此
33参考: http://www.cnblogs.com/marvin/p/ExtendWizNoteAutoNnavigation.html
44 http://www.cnblogs.com/asxinyu/p/Bolg_Category_For_BlogBeauty.html
55*/
@@ -58,7 +58,7 @@ function getContentWidth(compareWidth){
5858 var calcWidth = parseInt ( screePencent [ idx ] * compareWidth ) ;
5959 var tmpPencent = ( screePencent [ idx ] * 100 ) ;
6060 calcPencent = ( tmpPencent . toString ( ) + "%" ) ;
61- console . log ( 'calcwidth :' , idx , obj , compareWidth , calcPencent , calcWidth ) ;
61+ console . log ( 'use-width :' , idx , obj , compareWidth , calcPencent , calcWidth ) ;
6262 isGetVal = true ;
6363 return calcPencent ;
6464 }
@@ -146,7 +146,7 @@ $("#div_digg").wait(function() {
146146$ ( "#mainContent" ) . wait ( function ( ) {
147147 //根据页面type
148148 if ( document . getElementById ( "cnblogs_post_body" ) ) {
149- //博客内容全屏 NOTE 不用设置width ,隐藏同级div,它就是全屏 v~v
149+ //博客内容全屏 NOTE 在IE下不用设置width ,隐藏同级div,它就是全屏 v~v,buf chrome并不是!
150150 $ ( '#sideBar' ) . css ( 'width' , '0px' ) ;
151151 $ ( '#sideBar' ) . css ( 'display' , 'none' ) ;
152152
@@ -156,7 +156,7 @@ $("#mainContent").wait(function() {
156156 getContentWidth ( maxWidth ) ;
157157 $ ( '#mainContent' ) . css ( 'width' , calcPencent ) ;
158158 //$('#mainContent').css('position','relative');
159- console . log ( 'contant fullscreen' , calcPencent . toString ( ) , $ ( '#mainContent' ) . width ( ) ) ;
159+ console . log ( 'contant fullscreen-> ' , calcPencent . toString ( ) , $ ( '#mainContent' ) . width ( ) ) ;
160160 } else {
161161 //常显示右侧div
162162 $ ( '#sideBar' ) . css ( 'display' , 'block' ) ;
0 commit comments