Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-theme_boost_campus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-theme_boost_campus
Commits
86b250d5
Commit
86b250d5
authored
6 years ago
by
Kathrin Osswald
Browse files
Options
Downloads
Patches
Plain Diff
Prevent back-to-top button from being printed.
parent
02508ec6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGES.md
+1
-0
1 addition, 0 deletions
CHANGES.md
amd/build/backtotop.min.js
+1
-1
1 addition, 1 deletion
amd/build/backtotop.min.js
amd/src/backtotop.js
+1
-1
1 addition, 1 deletion
amd/src/backtotop.js
with
3 additions
and
2 deletions
CHANGES.md
+
1
−
0
View file @
86b250d5
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
amd/build/backtotop.min.js
+
1
−
1
View file @
86b250d5
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
This diff is collapsed.
Click to expand it.
amd/src/backtotop.js
+
1
−
1
View file @
86b250d5
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment