input/assets/js/custom.js
// TODO: Add active class and continue scrolling behavior if link is clicked but no more scroll can occur

Add active class and continue scrolling behavior if link is clicked but no more scroll can occur
Add active class and continue scrolling behavior if link is clicked but no more scroll can occur
function findActiveRightNavLink(scrollHash) {
        if (~scrollHash.indexOf('.')) {
            scrollHash = scrollHash.replace(/\./g, "\\.");
        }
        if ($(scrollHash).length) {
            if ($(window).scrollTop() >= $(scrollHash).offset().top && $(scrollHash).is(':visible')) {
                $('a[href="' + scrollHash + '"]').addClass('active');
                $('a[href="' + scrollHash + '"]').parent().prev().find('a.active').removeClass('active');
            } else {
                $('a[href="' + scrollHash + '"]').removeClass('active');
            }
        }
    }
function findActiveRightNavLink ( scrollHash ) { if ( ~ scrollHash . indexOf ( '.' ) ) { scrollHash = scrollHash . replace ( / \. / g , "\\." ) ; } if ( $ ( scrollHash ) . length ) { if ( $ ( window ) . scrollTop ( ) >= $ ( scrollHash ) . offset ( ) . top && $ ( scrollHash ) . is ( ':visible' ) ) { $ ( 'a[href="' + scrollHash + '"]' ) . addClass ( 'active' ) ; $ ( 'a[href="' + scrollHash + '"]' ) . parent ( ) . prev ( ) . find ( 'a.active' ) . removeClass ( 'active' ) ; } else { $ ( 'a[href="' + scrollHash + '"]' ) . removeClass ( 'active' ) ; } } }
TODO: Add active class and continue scrolling behavior if link is clicked but no more scroll can occur
TODO : Add active class and continue scrolling behavior if link is clicked but no more scroll can occur
// Enable selecting ID's with "." in them
