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 0b169ba commit 9ddd5eb
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,9 @@ require([
$(document).scroll(function () {
const y = $(this).scrollTop();
$('.page-header').toggleClass('sticky', y > 30);
if (y > 800) {
$('#backTop').fadeIn();
}
else {
$('#backTop').fadeOut();
}
// 2024-03-25 Dmitrii Fediuk https://upwork.com/fl/mage2pro
// https://jsfiddle.net/dfediuk/c6epnqor
$.fn[y > 800 ? 'fadeIn' : 'fadeOut'].apply($('#backTop'));
});
$('#newsletter-validate-detail').on('submit', function() {
if ($(this).valid()) {
Expand Down

0 comments on commit 9ddd5eb

Please sign in to comment.