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:
Taloth Saldono
2016-02-15 22:30:47 +01:00
parent 72f0085ef7
commit 34d5fb1aa0
3 changed files with 19 additions and 15 deletions

View File

@@ -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();
}
};