File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change 22 < footer id ="footer ">
33
44 </ footer >
5- < script >
6- $ ( function ( ) {
7- navOpen ( ) ;
8-
9- window . onscroll = function ( e ) {
10- offSetManager ( ) ;
11- }
12- } ) ;
13-
14- function offSetManager ( ) {
15-
16- var yOffset = 110 ;
17- var currYOffSet = window . pageYOffset ;
18- var menuHeight = $ ( '.doc-menu' ) . height ( ) ;
19- var windowHeight = $ ( window ) . height ( ) ;
20-
21- if ( ( yOffset < currYOffSet ) && ( menuHeight < windowHeight ) ) {
22- $ ( '.nav-wrap' ) . addClass ( 'fixed' ) ;
23- } else if ( yOffset > currYOffSet ) {
24- $ ( '.nav-wrap' ) . removeClass ( 'fixed' ) ;
25- }
26- }
27-
28- function navOpen ( ) {
29- $ ( '.nav-label, .open-documentation' ) . on ( 'click' , function ( e ) {
30- $ ( '.nav-container' ) . toggleClass ( 'nav-container-active' ) ;
31- e . preventDefault ( ) ;
32- } ) ;
33- }
34-
35- </ script >
365
376 < script src ="js/shCore.js "> </ script >
387 < script src ="js/shBrushXml.js "> </ script >
You can’t perform that action at this time.
0 commit comments