Skip to content
Snippets Groups Projects
Commit 86b250d5 authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Prevent back-to-top button from being printed.

parent 02508ec6
Branches
Tags
No related merge requests found
......@@ -6,6 +6,7 @@ Changes
### Unreleased
* 2019-05-24 - Prevent back-to-top button from being printed.
* 2019-05-03 - Added a setting to be able to add texts to your uploaded background images for the login page.
* 2019-05-02 - Added setting to be able to add additional resources to the theme.
......
define(["jquery"],function(a){"use strict";function b(){a("#page-footer").after('<i class="fa fa-chevron-up fa-2x" id="back-to-top"></i>'),a(window).scroll(function(){a(document).scrollTop()>220?a("#back-to-top").fadeIn(300):a("#back-to-top").fadeOut(100)}),a("#back-to-top").click(function(b){b.preventDefault(),a("html, body").animate({scrollTop:0},500)})}return{init:function(){b()}}});
\ No newline at end of file
define(["jquery"],function(a){"use strict";function b(){a("#page-footer").after('<i class="fa fa-chevron-up fa-2x d-print-none" id="back-to-top"></i>'),a(window).scroll(function(){a(document).scrollTop()>220?a("#back-to-top").fadeIn(300):a("#back-to-top").fadeOut(100)}),a("#back-to-top").click(function(b){b.preventDefault(),a("html, body").animate({scrollTop:0},500)})}return{init:function(){b()}}});
\ No newline at end of file
......@@ -29,7 +29,7 @@ define(['jquery'], function($) {
*/
function initBackToTop() {
// Add a fontawesome icon after the footer as the back to top button.
$('#page-footer').after('<i class="fa fa-chevron-up fa-2x" id="back-to-top"></i>');
$('#page-footer').after('<i class="fa fa-chevron-up fa-2x d-print-none" id="back-to-top"></i>');
// This function fades the button in when the page is scrolled down or fades it out
// if the user is at the top of the page.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment