33 ========================================================================== */
44
55$ ( document ) . ready ( function ( ) {
6- // Sticky footer
6+ // Sticky footer
77 var bumpIt = function ( ) {
88 $ ( "body" ) . css ( "margin-bottom" , $ ( ".page__footer" ) . outerHeight ( true ) ) ;
99 } ,
@@ -28,10 +28,6 @@ $(document).ready(function(){
2828
2929 var stickySideBar = function ( ) {
3030 var show = $ ( ".author__urls-wrapper button" ) . length === 0 ? $ ( window ) . width ( ) > 1024 : ! $ ( ".author__urls-wrapper button" ) . is ( ":visible" ) ;
31- // console.log("has button: " + $(".author__urls-wrapper button").length === 0);
32- // console.log("Window Width: " + windowWidth);
33- // console.log("show: " + show);
34- //old code was if($(window).width() > 1024)
3531 if ( show ) {
3632 // fix
3733 Stickyfill . rebuild ( ) ;
@@ -51,26 +47,19 @@ $(document).ready(function(){
5147 } ) ;
5248
5349 // Follow menu drop down
54-
5550 $ ( ".author__urls-wrapper button" ) . on ( "click" , function ( ) {
5651 $ ( ".author__urls" ) . fadeToggle ( "fast" , function ( ) { } ) ;
5752 $ ( ".author__urls-wrapper button" ) . toggleClass ( "open" ) ;
5853 } ) ;
5954
60- // init smooth scroll
61- $ ( "a" ) . smoothScroll ( { offset : - 20 } ) ;
55+ // init smooth scroll, this needs to be slightly more than then fixed masthead height
56+ $ ( "a" ) . smoothScroll ( { offset : - 65 } ) ;
6257
6358 // add lightbox class to all image links
6459 $ ( "a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']" ) . addClass ( "image-popup" ) ;
6560
6661 // Magnific-Popup options
6762 $ ( ".image-popup" ) . magnificPopup ( {
68- // disableOn: function() {
69- // if( $(window).width() < 500 ) {
70- // return false;
71- // }
72- // return true;
73- // },
7463 type : 'image' ,
7564 tLoading : 'Loading image #%curr%...' ,
7665 gallery : {
0 commit comments