diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/html/index.html | 2 | ||||
-rw-r--r-- | data/js/birdscan.js | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/data/html/index.html b/data/html/index.html index af72c46..eddc2b3 100644 --- a/data/html/index.html +++ b/data/html/index.html @@ -25,8 +25,10 @@ <main> <h1>birdscan</h1> <p>A software to take beautiful pictures of birds with a Raspberry Pi Camera.</p> + <button onclick="singlePicture()">Take single picture</button> </main> + <script src="./js/birdscan.js"></script> </body> </html> diff --git a/data/js/birdscan.js b/data/js/birdscan.js new file mode 100644 index 0000000..d1bba04 --- /dev/null +++ b/data/js/birdscan.js @@ -0,0 +1,7 @@ + +function singlePicture() { + const xhttp = new XMLHttpRequest(); + xhttp.open("POST", "./api/single_picture"); + xhttp.send(); +} + |