File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 280
280
281
281
window . addEventListener ( 'resize' , ( ) => {
282
282
if ( $ ( window ) . width ( ) >= 1008 ) {
283
- sidebar . classList . add ( 'wide' ) ;
284
- document . querySelector ( '#hc-search' ) . classList . add ( 'wide' ) ;
285
- sidebar . style . display = 'block' ;
286
283
adjustSide ( ) ;
287
284
adjustToc ( ) ;
288
285
adjustMain ( ) ;
299
296
} ) ;
300
297
301
298
function adjustSide ( ) {
299
+ sidebar . classList . add ( 'wide' ) ;
300
+ document . querySelector ( '#hc-search' ) . classList . add ( 'wide' ) ;
301
+ sidebar . style . display = 'block' ;
302
302
document . querySelector ( '.sidebar' ) . style . top = parseInt ( ( document . querySelector ( '.breadcrumb' ) . offsetHeight + 125 ) , 10 ) + "px" ;
303
303
document . querySelector ( '#hc-search' ) . style . top = parseInt ( ( document . querySelector ( '.breadcrumb' ) . offsetHeight + 95 ) , 10 ) + "px" ;
304
304
}
You can’t perform that action at this time.
0 commit comments