mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 10:32:35 +01:00
24 lines
550 B
JavaScript
24 lines
550 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'bootstrap'
|
|
], function () {
|
|
$(document).ready(function () {
|
|
|
|
$(window).scroll(function () {
|
|
if ($(this).scrollTop() > 100) {
|
|
$('#scroll-up').fadeIn();
|
|
}
|
|
else {
|
|
$('#scroll-up').fadeOut();
|
|
}
|
|
});
|
|
|
|
$('#scroll-up').click(function () {
|
|
$("html, body").animate({ scrollTop: 0 }, 600);
|
|
return false;
|
|
});
|
|
|
|
});
|
|
});
|