Browse Source

Improve board query args

master
NGnius (Graham) 4 years ago
parent
commit
49e6a2a1e8
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      site/board/board.js
  2. +1
    -1
      site/board/player.js

+ 1
- 1
site/board/board.js View File

@@ -2,7 +2,7 @@ let load_url = "https://leadercraft.exmods.org/s/load";
let test_url = "http://localhost:1337/load?board=main-test&count=15&start=0";
//load_url = test_url // testing only

let default_args = "?board=main-test&count=50&start=0";
let default_args = "?id=1&count=50&start=0";
let always_args = "&count=50&start=0";
let leaderboard_name_set = false;



+ 1
- 1
site/board/player.js View File

@@ -11,7 +11,7 @@ function build_player() {
let tmpEntry = {ID: -42, Rank:"?", BoardURL: "", BoardName:"Loading...", PlayerURL: "/player?id=1", PlayerName: "Loading...", Score:">9000"}
let errEntry = build_entry(tmpEntry)
leaderboard.appendChild(errEntry)
let gen_url = load_url+"?"+window.location.href.split("?").slice(1).join("?")+"&entries=10"
let gen_url = load_url+"?"+window.location.href.split("?").slice(1).join("?")+"&entries=25"
setTimeout(() => {document.getElementById("nameAnchor-42").innerText = "Something went wrong :(";}, 5000) // 5s
fetch(gen_url).then(
(response) => {


Loading…
Cancel
Save