Skip to content
Permalink
Browse files

Home users active

  • Loading branch information...
Manuel-777 committed Feb 12, 2019
1 parent 972042b commit 9420b4d298ee3a93e39e4755937d6a0337e16210
Showing with 19 additions and 6 deletions.
  1. +19 −6 window_main/home.js
@@ -35,17 +35,30 @@ function open_home_tab(arg, opentab = true) {
mainDiv.classList.remove("flex_item");
mainDiv.innerHTML = '';

let d = createDivision(["list_fill"]);
mainDiv.appendChild(d);
let title = createDivision(["card_tile_separator"], "Tournaments");
mainDiv.appendChild(title);
let cont = createDivision(["tournament_list_cont"]);

if (arg !== null) {
tournaments_list = arg.tournaments;
topWildcards = arg.wildcards;
usersActive = arg.users_active;
if (!opentab) return
}

if (usersActive) {
let d = createDivision(["list_fill"]);
mainDiv.appendChild(d);
let title = createDivision(["card_tile_separator"], "General");
mainDiv.appendChild(title);
let users = createDivision(["text_centered"], "Users active: "+usersActive);
users.setAttribute("tooltip-content", "In the last 24 hours.");
users.setAttribute("tooltip-bottom", "");
users.style.textAlign = "center";
mainDiv.appendChild(users);
}

let d = createDivision(["list_fill"]);
mainDiv.appendChild(d);
let title = createDivision(["card_tile_separator"], "Tournaments");
mainDiv.appendChild(title);
let cont = createDivision(["tournament_list_cont"]);

if (discordTag == null) {
let but = $('<div class="discord_but"></div>');

0 comments on commit 9420b4d

Please sign in to comment.
You can’t perform that action at this time.