diff options
Diffstat (limited to 'index.html')
| -rw-r--r-- | index.html | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -18,6 +18,11 @@ </form> </p> <p> + <form id="get-samples-form"> + <input type="submit" value="Download latest samples"> + </form> + </p> + <p> <form id="crunch-form"> <div> <input type="text" id="crunch-on"> @@ -99,6 +104,12 @@ subscribe(resp.name); }); }); + $("#get-samples-form").submit((e) => { + e.preventDefault(); + $.post("/api/samples").done((resp) => { + notif("downloading samples", "green"); + }); + }); $("#crunch-form").submit((e) => { e.preventDefault(); |
