cover photo: mior issue and more cleanup

This commit is contained in:
Mario Vavti 2018-09-10 12:12:05 +02:00
parent 4cc413cdaf
commit 4bb16b18ed

View File

@ -31,7 +31,7 @@
}); });
$(window).scroll(function () { $(window).scroll(function () {
if($(window).scrollTop() > cover_height) { if($(window).scrollTop() >= cover_height) {
coverHiddenActions(); coverHiddenActions();
coverSlid = true; coverSlid = true;
} }
@ -42,10 +42,7 @@
} }
else { else {
if($(window).scrollTop() < cover_height) { if($(window).scrollTop() < cover_height) {
$('body').css('cursor', 'n-resize'); coverVisibleActions();
$('.navbar').removeClass('fixed-top');
$('main').css('margin-top', - $('nav').outerHeight(true) + 'px');
$('main').css('opacity', 0);
} }
} }
} }
@ -79,6 +76,7 @@
return; return;
} }
window.scrollTo(0, cover_height); window.scrollTo(0, cover_height);
return;
} }
function coverVisibleActions() { function coverVisibleActions() {