summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-10 21:10:55 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-10 21:10:55 +0200
commitfc3881a7379cfc061fce3a5ac74ee9150909f707 (patch)
treea8313757e1171b6339ba04815adc7dd49db5dfd0 /index.html
parent9c640db98ac68bae9b77b5b36240957fb86f05f8 (diff)
downloadbridge-fc3881a7379cfc061fce3a5ac74ee9150909f707.tar.gz
bridge-fc3881a7379cfc061fce3a5ac74ee9150909f707.zip
add global crunch API
Diffstat (limited to 'index.html')
-rw-r--r--index.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/index.html b/index.html
index 6325eb1..a99c6ca 100644
--- a/index.html
+++ b/index.html
@@ -28,6 +28,11 @@
<input type="submit" value="Crunch">
</form>
</p>
+ <p>
+ <form id="crunchglobal-form">
+ <input type="submit" value="Crunch global stats">
+ </form>
+ </p>
<ul id="updates"></ul>
@@ -106,6 +111,10 @@
subscribe(ign);
$.post("/api/player/" + ign + "/crunch");
});
+ $("#crunchglobal-form").submit((e) => {
+ e.preventDefault();
+ $.post("/api/crunch");
+ });
</script>
</body>
</html>