- better search page

- white header on starting page else green
This commit is contained in:
Arno Kaimbacher 2020-04-20 23:29:10 +02:00
parent 578021e07e
commit 7622c93473
11 changed files with 171 additions and 186 deletions

View file

@ -45,14 +45,17 @@ $(document).ready(function () {
$navigationLink = $('.menu a');
if (location.pathname == "/") {
$navigation.addClass('transparent');
$(window).scroll(function () {
if (window.scrollY > window.outerHeight) {
if (window.scrollY >= (window.innerHeight + $navigation.height())) {
$menuIcon.addClass('active');
$navigation.removeClass('transparent');
} else {
$menuIcon.removeClass('active');
$navigation.addClass('transparent');
}
});
}
}
$menuIcon.click(function (e) {
e.preventDefault();