summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/index.html b/index.html
index 26c0f5e..fbbc5b0 100644
--- a/index.html
+++ b/index.html
@@ -37,6 +37,14 @@
<input type="submit" value="Crunch global stats">
</form>
</p>
+ <p>
+ <form id="update-region-form">
+ <select id="update-region-region">
+ <option value="tournament-na">North America Tournament server</option>
+ </select>
+ <input type="submit" value="Update region">
+ </form>
+ </p>
<ul id="updates"></ul>
@@ -108,6 +116,11 @@
$.post("/api/player/" + ign + "/update-brawl");
}
});
+ $("#update-region-form").submit((e) => {
+ e.preventDefault();
+ const region = $("#update-region-region").val();
+ $.post("/api/match/" + region + "/update");
+ });
$("#update-random-form").submit((e) => {
e.preventDefault();
$.post("/api/player");