mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02: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;
|
||
|
});
|
||
|
|
||
|
});
|
||
|
});
|