(function($){"use strict";if($('.to-top').length){var scrollTrigger=500,backToTop=function(){var scrollTop=$(window).scrollTop();if(scrollTop>scrollTrigger){$('.to-top').addClass('fixed')}else{$('.to-top').removeClass('fixed')}};backToTop();$(window).on('scroll',function(){backToTop()});$('.to-top').on('click',function(e){e.preventDefault();$('html,body').animate({scrollTop:0},700)})}})(jQuery)