mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 01:27:00 +00:00
23 lines
550 B
JavaScript
23 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;
|
|
});
|
|
|
|
});
|
|
});
|