$(document).ready(function () {
const btn = $('#fixed-button')
const navOffset = $('.footer').offset().top
$(window).scroll(function () {
const scrolled = $(this).scrollTop()
if (scrolled > 1500 || scrolled > navOffset) {
btn.addClass('--show')
} else if (scrolled < 1500 || scrolled < navOffset) {
btn.removeClass('--show')
}
})
})