Update nav.js

This commit is contained in:
Janis Hutz
2023-02-24 07:26:44 +00:00
committed by GitHub
parent 8ec2d1e06a
commit 764b65771e

View File

@@ -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 );