mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Hiding scrolltotopbottombuttons when user is at the top or bottom
This commit is contained in:
2
static/dist/embed.min.js
vendored
2
static/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -428,10 +428,10 @@ $(document).on("click", ".brand-logo-navigate", function(e){
|
||||
$(document).on("mousemove", "#playlist", function(e)
|
||||
{
|
||||
var y = e.pageY - this.offsetTop;
|
||||
if((y <= 27 && adminpass == "") || (y <= 80 && y >= 48 && adminpass != "")){
|
||||
if(((y <= 27 && adminpass == "") || (y <= 80 && y >= 48 && adminpass != "")) && $("#wrapper").scrollTop() > 0){
|
||||
$("#top-button").removeClass("hide");
|
||||
Helper.addClass("#bottom-button", "hide");
|
||||
}else if(y >= $("#playlist").height() - 18){
|
||||
}else if(y >= $("#playlist").height() - 18 && $("#wrapper").scrollTop() < $("#wrapper")[0].scrollHeight - $("#wrapper").height() - 1){
|
||||
$("#bottom-button").removeClass("hide");
|
||||
Helper.addClass("#top-button", "hide");
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user