finished build script

This commit is contained in:
2023-02-23 19:17:08 +01:00
parent 784541d9ab
commit e0dca1e82f
7 changed files with 124 additions and 64 deletions

View File

@@ -1,7 +1,6 @@
let bannedIDs = [];
function highlightPath () {
console.log( 'highlighting' );
if ( $( location ).attr( 'pathname' ).slice( 6, location.pathname.length ) === '' ) {
$( '#home' ).animate( { 'background-color': 'black' }, 200 );
bannedIDs.push( 'home' );
@@ -22,7 +21,6 @@ function highlightPath () {
};
function highlightSubPath ( sliceStart ) {
console.log( $( 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 );
bannedIDs.push( 'root' );