mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-10 04:52:42 +01:00
26 lines
630 B
JavaScript
26 lines
630 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'bootstrap'
|
|
], function () {
|
|
$(document).ready(function () {
|
|
|
|
var _window = $(window);
|
|
var _scrollButton = $('#scroll-up');
|
|
|
|
$(window).scroll(function () {
|
|
if (_window.scrollTop() > 100) {
|
|
_scrollButton.fadeIn();
|
|
}
|
|
else {
|
|
_scrollButton.fadeOut();
|
|
}
|
|
});
|
|
|
|
_scrollButton.click(function () {
|
|
$("html, body").animate({ scrollTop: 0 }, 600);
|
|
return false;
|
|
});
|
|
});
|
|
});
|