mirror of https://github.com/dirtbags/moth.git
Show base URL on scoreboard
This commit is contained in:
parent
4a20afdd4b
commit
a36dbb48be
|
@ -111,6 +111,9 @@ function once() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
let base = window.location.href.replace("scoreboard.html", "")
|
||||||
|
document.querySelector("#location").textContent = base
|
||||||
|
|
||||||
setInterval(once, 60000);
|
setInterval(once, 60000);
|
||||||
once();
|
once();
|
||||||
}
|
}
|
||||||
|
@ -123,6 +126,7 @@ if (document.readyState === "loading") {
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 class="Success">Scoreboard</h1>
|
<h1 class="Success">Scoreboard</h1>
|
||||||
|
<h4 id="location"></h4>
|
||||||
<section>
|
<section>
|
||||||
<div id="scoreboard"></div>
|
<div id="scoreboard"></div>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in New Issue