~hristoast/mousikofidi

e122d5d0550b66123fb66e2734da897cf92574d1 — Hristos N. Triantafillou a month ago 4cd5de5
Shortcuts aren't needed when the page isn't so big
1 files changed, 5 insertions(+), 0 deletions(-)

M mousikofidi/static/js/player.js
M mousikofidi/static/js/player.js => mousikofidi/static/js/player.js +5 -0
@@ 1278,6 1278,11 @@ function FidiPlayerSetUp() {
        coverArt.addEventListener("click", coverArtClickListener);

    if (upArrow) {
        if (!(document.body.clientHeight > document.documentElement.clientHeight)) {
            downArrow.classList.toggle("hidden");
            return;
        }

        downArrow.addEventListener("click", function() {
            window.scrollTo({top: document.body.scrollHeight, behavior: 'smooth'});
        });