From b6d1df48244db14d693c286445ca1384341ae0c1 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Thu, 22 Dec 2022 19:09:34 +0100 Subject: Add webserver and simple webpage --- data/index.html | 31 +++++++++++++++++++++++++++++++ data/script.js | 15 +++++++++++++++ data/style.css | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 data/index.html create mode 100644 data/script.js create mode 100644 data/style.css (limited to 'data') diff --git a/data/index.html b/data/index.html new file mode 100644 index 0000000..f3b7068 --- /dev/null +++ b/data/index.html @@ -0,0 +1,31 @@ + + + + + + + Schack v.0.0.1 + + + + +
+

Schack

+ +
+
+ + + + + +
+
+ + +
+ + + 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 @@ +document.getElementById("button-previous-s").onclick = function() { + fetch("/previouss"); +} + +document.getElementById("button-previous").onclick = function() { + fetch("/previous"); +} + +document.getElementById("button-next").onclick = function() { + fetch("/next"); +} + +document.getElementById("button-next-s").onclick = function() { + fetch("/nexts"); +} diff --git a/data/style.css b/data/style.css new file mode 100644 index 0000000..52dfca6 --- /dev/null +++ b/data/style.css @@ -0,0 +1,40 @@ +:root { + --black: #333333; + --white: #eeeeee; +} + +body { + background-color: var(--black); + color: var(--white); + + font-family: monospace; + letter-spacing: 0.2em; +} + +main { + padding: 2em; +} + +a { + color: var(--white); +} + +h1 { + font-size: 42px; + + margin: 0; +} + +#container { + padding-top: 2em; + padding-bottom: 2em; +} + +input { + padding: 0.5em; + + background-color: var(--white); + color: var(--black); + + border: none; +} -- cgit v1.2.3