From 8fc264f11b60884da9288299b6950ece1cf749f1 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 4 May 2017 22:30:44 +0200 Subject: add endpoint for team crunching --- index.html | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'index.html') diff --git a/index.html b/index.html index 8a699cc..f8d1c56 100644 --- a/index.html +++ b/index.html @@ -32,6 +32,12 @@

+

+

+ + +
+

@@ -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(); -- cgit v1.3.1