diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-29 19:10:08 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-29 19:10:08 +0200 |
| commit | e0a57214ef22a4a050f22deed188fd441f07cf56 (patch) | |
| tree | d55d6e5d784e3596bceeebc95eba3c2da2dd10ba /index.html | |
| parent | 9b492af0841553ca8255f2e214bfb4ab3c41039f (diff) | |
| download | bridge-e0a57214ef22a4a050f22deed188fd441f07cf56.tar.gz bridge-e0a57214ef22a4a050f22deed188fd441f07cf56.zip | |
refactor & implement region crawls
Diffstat (limited to 'index.html')
| -rw-r--r-- | index.html | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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"); |
