2021-05-29 15:59:19 +02:00
|
|
|
$(document).ready(function(){
|
2021-06-04 12:38:17 +02:00
|
|
|
|
2021-05-29 15:59:19 +02:00
|
|
|
$('.go-up').click(function(){
|
|
|
|
$('body, html').animate({
|
|
|
|
scrollTop: '0px'
|
|
|
|
}, 300);
|
|
|
|
});
|
|
|
|
|
|
|
|
$(window).scroll(function(){
|
|
|
|
if( $(this).scrollTop() > 0 ){
|
|
|
|
$('.go-up').slideDown(300);
|
|
|
|
} else {
|
|
|
|
$('.go-up').slideUp(300);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|