Update nav.js
This commit is contained in:
@@ -32,7 +32,7 @@ function highlightPath () {
|
|||||||
|
|
||||||
function highlightSubPath ( sliceStart ) {
|
function highlightSubPath ( sliceStart ) {
|
||||||
if ( $( location ).attr( 'pathname' ).slice( sliceStart, parseInt( location.pathname.length ) - 5 ) === '' ) {
|
if ( $( location ).attr( 'pathname' ).slice( sliceStart, parseInt( location.pathname.length ) - 5 ) === '' ) {
|
||||||
$( '#root' ).animate( { 'background-color': 'black' }, 200 );
|
$( '#root' ).animate( { 'background-color': 'rgb(43, 43, 43)' }, 200 );
|
||||||
bannedIDs.push( 'root' );
|
bannedIDs.push( 'root' );
|
||||||
} else {
|
} else {
|
||||||
$( `#${location.pathname.slice( sliceStart, parseInt( location.pathname.length ) - 5 )}` ).animate( { 'background-color': 'rgb(43, 43, 43)' }, 200 );
|
$( `#${location.pathname.slice( sliceStart, parseInt( location.pathname.length ) - 5 )}` ).animate( { 'background-color': 'rgb(43, 43, 43)' }, 200 );
|
||||||
|
|||||||
Reference in New Issue
Block a user