diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2022-12-22 19:09:34 +0100 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2022-12-22 19:09:34 +0100 |
commit | b6d1df48244db14d693c286445ca1384341ae0c1 (patch) | |
tree | 8ce0bdea077e5f132087f53437dab7bc34794233 /data/script.js | |
parent | 64ea63f2efadddf9bf185f7ce24bf3c56538b287 (diff) | |
download | shack-b6d1df48244db14d693c286445ca1384341ae0c1.tar.gz shack-b6d1df48244db14d693c286445ca1384341ae0c1.zip |
Add webserver and simple webpage
Diffstat (limited to 'data/script.js')
-rw-r--r-- | data/script.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/data/script.js b/data/script.js new file mode 100644 index 0000000..0f3101f --- /dev/null +++ b/data/script.js | |||
@@ -0,0 +1,15 @@ | |||
1 | document.getElementById("button-previous-s").onclick = function() { | ||
2 | fetch("/previouss"); | ||
3 | } | ||
4 | |||
5 | document.getElementById("button-previous").onclick = function() { | ||
6 | fetch("/previous"); | ||
7 | } | ||
8 | |||
9 | document.getElementById("button-next").onclick = function() { | ||
10 | fetch("/next"); | ||
11 | } | ||
12 | |||
13 | document.getElementById("button-next-s").onclick = function() { | ||
14 | fetch("/nexts"); | ||
15 | } | ||