Skip to content

Commit

Permalink
https://github.com/cabinetsbay/site/issues/121
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Mar 24, 2024
1 parent 31dc208 commit 0b169ba
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,7 @@ require([

$(document).scroll(function () {
const y = $(this).scrollTop();
if (y > 30) {
$('.page-header').addClass('sticky');
}
else {
$('.page-header').removeClass('sticky');
}
$('.page-header').toggleClass('sticky', y > 30);
if (y > 800) {
$('#backTop').fadeIn();
}
Expand Down

0 comments on commit 0b169ba

Please sign in to comment.