Skip to content

Commit

Permalink
pop-rank
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbam committed Sep 2, 2019
1 parent b9c7aaf commit d21261d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions static/league.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ function popup(title, rank, racer, time) {
document.querySelector('.pop-time').innerText = time;

let pop_racer = document.querySelector('.pop-racer');
pop_racer.classList.add(`pop-racer${rank}`);
pop_racer.classList.add(`pop-rank${rank}`);
pop_racer.innerText = racer;

$('.pop-layer').fadeIn();

setTimeout(function () {
$('.pop-layer').fadeOut();
pop_racer.classList.remove(`pop-racer${rank}`);
pop_racer.classList.remove(`pop-rank${rank}`);
}, 9000);
}

Expand All @@ -177,8 +177,11 @@ function scroll(dir) {
if (dir > 3) {
dir = dir - 3;
top = $(`.lb-rank${dir}`).offset().top;
scroller = 20;
} else {
top = 0;
scroller = 0;
}
scroller = 20;
}

$('html, body').stop().animate({
Expand Down

0 comments on commit d21261d

Please sign in to comment.