mobile optimisation

This commit is contained in:
janis
2023-01-06 15:42:44 +01:00
parent 2c0c829f8e
commit 16524c843f
5 changed files with 198 additions and 106 deletions

View File

@@ -24,13 +24,13 @@ 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 == '/privacypolicy' ) {
} else if ( pagename.slice(0, 6) == '/about' || pagename.slice(0, 14) == '/privacypolicy' ) {
$('#about').css('background-color', 'darkblue');
} else if ( pagename == '/' || pagename == '/index.html' ) {
} else if ( pagename.slice(0, 6) == '/' || pagename == '/index.html' ) {
$('#home').css('background-color', 'darkblue');
} else if ( pagename == '/support' ) {
} else if ( pagename.slice(0, 6) == '/support' ) {
$('#support').css('background-color', 'darkblue');
} else if ( pagename == '/services' ) {
} else if ( pagename.slice(0, 6) == '/services' ) {
$('#services').css('background-color', 'darkblue');
};
}