1
1
/*
2
- 功能: 为博客自定义功能,比如推荐此文,Scrollbar;新功能添加在此
2
+ 功能: 为博客自定义功能,比如推荐此文,Scrollbar;roadmap: 新功能添加在此
3
3
参考: http://www.cnblogs.com/marvin/p/ExtendWizNoteAutoNnavigation.html
4
4
http://www.cnblogs.com/asxinyu/p/Bolg_Category_For_BlogBeauty.html
5
5
*/
@@ -58,7 +58,7 @@ function getContentWidth(compareWidth){
58
58
var calcWidth = parseInt ( screePencent [ idx ] * compareWidth ) ;
59
59
var tmpPencent = ( screePencent [ idx ] * 100 ) ;
60
60
calcPencent = ( tmpPencent . toString ( ) + "%" ) ;
61
- console . log ( 'calcwidth :' , idx , obj , compareWidth , calcPencent , calcWidth ) ;
61
+ console . log ( 'use-width :' , idx , obj , compareWidth , calcPencent , calcWidth ) ;
62
62
isGetVal = true ;
63
63
return calcPencent ;
64
64
}
@@ -146,7 +146,7 @@ $("#div_digg").wait(function() {
146
146
$ ( "#mainContent" ) . wait ( function ( ) {
147
147
//根据页面type
148
148
if ( document . getElementById ( "cnblogs_post_body" ) ) {
149
- //博客内容全屏 NOTE 不用设置width ,隐藏同级div,它就是全屏 v~v
149
+ //博客内容全屏 NOTE 在IE下不用设置width ,隐藏同级div,它就是全屏 v~v,buf chrome并不是!
150
150
$ ( '#sideBar' ) . css ( 'width' , '0px' ) ;
151
151
$ ( '#sideBar' ) . css ( 'display' , 'none' ) ;
152
152
@@ -156,7 +156,7 @@ $("#mainContent").wait(function() {
156
156
getContentWidth ( maxWidth ) ;
157
157
$ ( '#mainContent' ) . css ( 'width' , calcPencent ) ;
158
158
//$('#mainContent').css('position','relative');
159
- console . log ( 'contant fullscreen' , calcPencent . toString ( ) , $ ( '#mainContent' ) . width ( ) ) ;
159
+ console . log ( 'contant fullscreen-> ' , calcPencent . toString ( ) , $ ( '#mainContent' ) . width ( ) ) ;
160
160
} else {
161
161
//常显示右侧div
162
162
$ ( '#sideBar' ) . css ( 'display' , 'block' ) ;
0 commit comments