mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-03-13 17:05:15 +00:00
Fiddled with the Back to the Top button a bit so it's better visible on the white background, also only on widescreen now.
This commit is contained in:
@@ -3,13 +3,14 @@ var _ = require('underscore');
|
||||
|
||||
$(document).ready(function() {
|
||||
var _window = $(window);
|
||||
var _scrollButton = $('#scroll-up');
|
||||
var _scrollContainer = $('#scroll-up');
|
||||
var _scrollButton = $('#scroll-up i');
|
||||
|
||||
var _scrollHandler = function() {
|
||||
if (_window.scrollTop() > 100) {
|
||||
_scrollButton.fadeIn();
|
||||
if (_window.scrollTop() > 400) {
|
||||
_scrollContainer.fadeIn();
|
||||
} else {
|
||||
_scrollButton.fadeOut();
|
||||
_scrollContainer.fadeOut();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user