`);
}
// now revolving text is visible
jQuery('.spz-footer-slider .footer-slider-height').addClass('active');
function showSlides3() {
//animation start
jQuery('.spz-footer-slider .slider-item:nth-child(1)').animate({height: 'hide'}, 800);
setTimeout(function () {
var attr = jQuery('.spz-footer-slider .slider-item:nth-child(1)').attr('data-order');
if (typeof attr !== 'undefined' && attr !== false) {//check if not dummy then enter
//debugger;
//get order of item about to remove & append same item in the last for loop effect
let removeItemOrder = jQuery('.spz-footer-slider .slider-item:nth-child(1)').attr("data-order");
jQuery('.spz-footer-slider .footer-slider-height').append(`
${revolingText[removeItemOrder]}
`);
//remove item
jQuery('.spz-footer-slider .slider-item[data-order=' + removeItemOrder + ']:first').remove();
} else {//if dummy remove item
jQuery('.spz-footer-slider .slider-item:nth-child(1)').remove();
}
}
, 800);
setTimeout(showSlides3, 4000);
}
setTimeout(showSlides3, 4000);
}
/*---------4058 v1 start----------*/
document.querySelector('.sticky-footer .book-demo-cta').addEventListener('click', function () {
document.querySelector('.main-header__inner .main-header__btns .flydown-open').click();
});
window.onbeforeunload = function () {
var rect = window.scrollY;
hero_h = jQuery('.m-hero').outerHeight();
head_h = jQuery('.main-header.sticky').outerHeight();
scroll_h = hero_h - head_h;
if (rect >= scroll_h) {
jQuery('.sticky-footer').addClass('stick');
jQuery('body').addClass('stick_active');
} else if (rect < scroll_h) {
jQuery('.sticky-footer').removeClass('stick');
jQuery('body').removeClass('stick_active');
}
}
//window.scrollBy(0, -1); // 0 pixels horizontal and 1 pixel up
jQuery(window).scrollTop(jQuery(window).scrollTop() + 1);
jQuery(document).on('scroll', function () {
var y = window.scrollY;
hero_h = jQuery('.m-hero').outerHeight();
head_h = jQuery('.main-header.sticky').outerHeight();
scroll_h = hero_h - head_h;
//console.log(scroll_h);
if (y >= scroll_h) {
jQuery('.sticky-footer').addClass('stick');
jQuery('body').addClass('stick_active');
} else if (y < scroll_h) {
jQuery('.sticky-footer').removeClass('stick');
jQuery('body').removeClass('stick_active');
}
});
//hide sticky on click of close btn
jQuery(document).on('click', '.close-btn', function () {
jQuery('.sticky-footer').css('display', 'none');
jQuery('body').removeClass('stick_active');
jQuery('body').addClass('stick_closed');
});
// scroll top to hero form on get demo btn click
/*jQuery(".sticky-footer .book-demo-cta").on("click" ,function(){
jQuery('html, body').animate({ scrollTop: jQuery('.lnd-hero #hero-form').offset().top - 20 }, 600);
});*/
/*---------4058 v1 end----------*/
}
}, 100);
Privacy Overview
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookies
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
3rd Party Cookies
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
We empower you to boost your business
"I think Glofox speaks to lots of different fitness businesses. I looked at a few options, but the Glofox positioning was more flexible. Without it the business wouldn't be scaleable”
Mehdi Elaichouni
—
Owner at Carpe Diem BJJ
Trusted by studios, and global gym chains.
We empower you to boost your business
"I think Glofox speaks to lots of different fitness businesses. I looked at a few options, but the Glofox positioning was more flexible. Without it the business wouldn't be scaleable”