summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/index.html b/index.html
index 8a699cc..f8d1c56 100644
--- a/index.html
+++ b/index.html
@@ -33,6 +33,12 @@
</form>
</p>
<p>
+ <form id="crunch-team-form">
+ <input type="text" id="crunch-team">
+ <input type="submit" value="Crunch Team by ID">
+ </form>
+ </p>
+ <p>
<form id="crunchglobal-form">
<input type="checkbox" id="crunch-force">
<label for="crunch-force">Force recrunch</label>
@@ -146,6 +152,11 @@
const ign = $("#crunch-name").val();
$.post("/api/player/" + ign + "/crunch");
});
+ $("#crunch-team-form").submit((e) => {
+ e.preventDefault();
+ const id = $("#crunch-team").val();
+ $.post("/api/team/" + id + "/crunch");
+ });
$("#crunchglobal-form").submit((e) => {
const force = $("#crunch-force").is(":checked");
e.preventDefault();