diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-08 00:00:33 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-08 00:00:33 +0200 |
| commit | 1af24ac18a2b6f1b1f1d8aa5b62cebef383caf5b (patch) | |
| tree | 1a9eeef0008ee5f8df0572148e895b0682dc2ba9 /index.html | |
| parent | 4e85c8f9e32d556e0f8682f9ecbae1e4a8bf49e6 (diff) | |
| download | bridge-1af24ac18a2b6f1b1f1d8aa5b62cebef383caf5b.tar.gz bridge-1af24ac18a2b6f1b1f1d8aa5b62cebef383caf5b.zip | |
implement simple sample downloads
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(); |
