cover photo: mior issue and more cleanup
This commit is contained in:
parent
4cc413cdaf
commit
4bb16b18ed
@ -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() {
|
||||||
|
Reference in New Issue
Block a user