diff options
Diffstat (limited to 'index.html')
| -rw-r--r-- | index.html | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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> |
