Show base URL on scoreboard

This commit is contained in:
Neale Pickett 2019-03-07 14:53:58 +00:00
parent 4a20afdd4b
commit a36dbb48be
1 changed files with 4 additions and 0 deletions

View File

@ -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>