@@ -48,6 +48,8 @@ const domInit = function(){
48
48
49
49
// 因为你这里你根本不知道页面结构到底加载好了没 资源 z加载enme完毕了吗
50
50
document . querySelector ( '.Header' ) . style . paddingLeft = '350px' ;
51
+ // document.querySelector('#js-repo-pjax-container').style.paddingLeft = '350px';
52
+
51
53
52
54
// document.getElementsByTagName('html')[0].style.marginLeft = "350px";
53
55
}
@@ -90,7 +92,7 @@ function init(list) {
90
92
isGetFisrtLevel = true ;
91
93
92
94
var header_p = document . createElement ( "li" ) ;
93
- header_p . textContent = "Article TOC for GitHub " ;
95
+ header_p . textContent = "GitHub Markdown TOC " ;
94
96
addStyle ( header_p , { "listStyle" : "none" , "font-size" :"20px" , "margin-bottom" :"10px" } ) ;
95
97
96
98
var gotop_li = document . createElement ( "li" ) ;
@@ -167,6 +169,9 @@ function bindResize(el) {
167
169
168
170
//移动事件
169
171
function mouseMove ( e ) {
172
+ console . log ( e ) ;
173
+ // document.querySelector('#js-repo-pjax-container').style.paddingLeft = "0px";
174
+ // console.log
170
175
//宇宙超级无敌运算中...
171
176
let w = document . body . clientWidth ;
172
177
let w2 = e . clientX + 'px' ;
@@ -186,8 +191,8 @@ function bindResize(el) {
186
191
// console.log("e.clientX " + e.clientX);
187
192
188
193
189
- var readmeWidth = document . getElementById ( "readme" ) . clientWidth ;
190
- var maxWidth = document . getElementById ( "readme" ) . clientWidth * 0.8 ;
194
+ // var readmeWidth = document.getElementById("readme").clientWidth;
195
+ // var maxWidth = document.getElementById("readme").clientWidth * 0.8;
191
196
var minWidth = 200 ;
192
197
var moveWidth = parseInt ( e . clientX ) ;
193
198
if ( moveWidth < 200 ) {
@@ -196,8 +201,6 @@ function bindResize(el) {
196
201
var $header = document . querySelector ( '.Header' ) ;
197
202
198
203
199
-
200
-
201
204
if ( moveWidth > minWidth && e . clientX > containerClient . left ) {
202
205
document . getElementsByTagName ( 'html' ) [ 0 ] . style . marginLeft = w2 ;
203
206
$header . style . paddingLeft = 0 + 'px' ;
0 commit comments