complete restructuring

This commit is contained in:
2023-07-13 15:05:24 +02:00
parent 686f3ce740
commit ad14c03206
492 changed files with 0 additions and 66301 deletions

20
js/basicanimations.js Executable file
View File

@@ -0,0 +1,20 @@
$( document ).ready( function() {
$( '#ContentToInclude' ).load( '/menu.html' );
$( '#Footer' ).load('/footer.html');
setTimeout( highlightLocation, 200 );
} );
function highlightLocation () {
let pagename = $(location).attr( 'pathname' );
if ( pagename.slice(0, 8) == '/project' ) {
$( '#projects' ).css( 'background-color', 'darkblue' );
} else if ( pagename.slice( 0, 6 ) == '/about' || pagename.slice( 0, 14 ) == '/privacypolicy' ) {
$( '#about' ).css( 'background-color', 'darkblue' );
} else if ( pagename.slice( 0, 6 ) == '/' || pagename == '/index.html' ) {
$( '#home' ).css( 'background-color', 'darkblue' );
} else if ( pagename.slice( 0, 8 ) == '/support' ) {
$( '#support' ).css( 'background-color', 'darkblue' );
} else if ( pagename.slice( 0, 9 ) == '/services' ) {
$( '#services' ).css( 'background-color', 'darkblue') ;
};
}