plugin index.html

This commit is contained in:
2023-02-24 19:08:34 +01:00
parent 764b65771e
commit 91d71c6dc7
4 changed files with 383 additions and 12 deletions

View File

@@ -32,7 +32,11 @@ function highlightPath () {
function highlightSubPath ( sliceStart ) {
if ( $( location ).attr( 'pathname' ).slice( sliceStart, parseInt( location.pathname.length ) - 5 ) === '' ) {
$( '#root' ).animate( { 'background-color': 'rgb(43, 43, 43)' }, 200 );
if ( $(location).attr( 'pathname' ).slice( 6, 13 ) === 'plugins' ) {
$( '#plugins-home' ).animate( { 'background-color': 'rgb(43, 43, 43)' }, 200 );
} else {
$( '#root' ).animate( { 'background-color': 'rgb(43, 43, 43)' }, 200 );
}
bannedIDs.push( 'root' );
} else {
$( `#${location.pathname.slice( sliceStart, parseInt( location.pathname.length ) - 5 )}` ).animate( { 'background-color': 'rgb(43, 43, 43)' }, 200 );