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() {
|
||||
let base = window.location.href.replace("scoreboard.html", "")
|
||||
document.querySelector("#location").textContent = base
|
||||
|
||||
setInterval(once, 60000);
|
||||
once();
|
||||
}
|
||||
|
@ -123,6 +126,7 @@ if (document.readyState === "loading") {
|
|||
</head>
|
||||
<body>
|
||||
<h1 class="Success">Scoreboard</h1>
|
||||
<h4 id="location"></h4>
|
||||
<section>
|
||||
<div id="scoreboard"></div>
|
||||
</section>
|
||||
|
|
Loading…
Reference in New Issue