Browse Source

Button

pull/45/head
Jure Šorn 5 years ago
parent
commit
2b9f30a4be
3 changed files with 3 additions and 3 deletions
  1. 2
      index.html
  2. 2
      web/script_2.js
  3. 2
      web/template.html

2
index.html

@ -179,7 +179,7 @@ pre.prettyprint {
}
#return-to-top:hover {
background: rgba(0, 0, 0, 0.55);
background: rgba(0, 0, 0, 0.35);
}
#return-to-top:hover i {

2
web/script_2.js

@ -54,7 +54,7 @@ if (!isFontAvailable('Menlo')) {
// ===== Scroll to Top ====
$(window).scroll(function() {
if ($(this).scrollTop() >= 50) { // If page is scrolled more than 50px
if ($(this).scrollTop() >= 590) { // If page is scrolled more than 50px
$('#return-to-top').fadeIn(200); // Fade in the arrow
} else {
$('#return-to-top').fadeOut(200); // Else fade out the arrow

2
web/template.html

@ -179,7 +179,7 @@ pre.prettyprint {
}
#return-to-top:hover {
background: rgba(0, 0, 0, 0.55);
background: rgba(0, 0, 0, 0.35);
}
#return-to-top:hover i {

Loading…
Cancel
Save