summaryrefslogtreecommitdiffstats
path: root/data/script.js
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2022-12-22 19:09:34 +0100
committerjdlugosz963 <jdlugosz963@gmail.com>2022-12-22 19:09:34 +0100
commitb6d1df48244db14d693c286445ca1384341ae0c1 (patch)
tree8ce0bdea077e5f132087f53437dab7bc34794233 /data/script.js
parent64ea63f2efadddf9bf185f7ce24bf3c56538b287 (diff)
downloadshack-b6d1df48244db14d693c286445ca1384341ae0c1.tar.gz
shack-b6d1df48244db14d693c286445ca1384341ae0c1.zip
Add webserver and simple webpage
Diffstat (limited to 'data/script.js')
-rw-r--r--data/script.js15
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 @@
1document.getElementById("button-previous-s").onclick = function() {
2 fetch("/previouss");
3}
4
5document.getElementById("button-previous").onclick = function() {
6 fetch("/previous");
7}
8
9document.getElementById("button-next").onclick = function() {
10 fetch("/next");
11}
12
13document.getElementById("button-next-s").onclick = function() {
14 fetch("/nexts");
15}