summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-29 19:10:08 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-29 19:10:08 +0200
commite0a57214ef22a4a050f22deed188fd441f07cf56 (patch)
treed55d6e5d784e3596bceeebc95eba3c2da2dd10ba /index.html
parent9b492af0841553ca8255f2e214bfb4ab3c41039f (diff)
downloadbridge-e0a57214ef22a4a050f22deed188fd441f07cf56.tar.gz
bridge-e0a57214ef22a4a050f22deed188fd441f07cf56.zip
refactor & implement region crawls
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");