File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1+ const handleApiToolbar = ( ) => {
2+ const banner = document . querySelector ( '.announcement_banner' ) ;
3+ const toolbar = document . querySelector ( '.api-toolbar' ) ;
4+
5+ if ( ! banner . classList . value . includes ( 'open' ) ) {
6+ if ( toolbar ) {
7+ toolbar . style . top = '64px' ;
8+ }
9+ }
10+ }
11+
112$ ( document ) . ready ( function ( ) {
13+ handleApiToolbar ( ) ;
14+
215 $ ( '.announcement_banner .icon' ) . on ( 'click' , function ( ) {
316 sessionStorage . setItem ( 'announcement_banner' , 'closed' ) ;
417 $ ( '.announcement_banner' ) . removeClass ( 'open' ) ;
18+ handleApiToolbar ( ) ;
519 $ ( 'html' ) . removeClass ( 'banner' ) ;
620 $ ( window ) . trigger ( 'scroll' ) ;
721 } ) ;
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ $ddpurple: #632ca6;
130130 background : white ;
131131 position : sticky ;
132132 z-index : 1 ;
133- top : 95 px ;
133+ top : 94 px ;
134134 height : 65px ;
135135 }
136136
You can’t perform that action at this time.
0 commit comments