Serve both the controller and the display on the same endpoint
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>The Fancy N</title>
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="./main.css">
|
||||
<script src="controller.js"></script>
|
||||
<link rel="stylesheet" href="/controller/main.css">
|
||||
<script src="/controller/controller.js"></script>
|
||||
<meta name="viewport" content="width=300px, initial-scale=1">
|
||||
<style>
|
||||
body {
|
||||
|
||||
@@ -52,7 +52,7 @@ document.addEventListener("touchmove", (e) => {
|
||||
});
|
||||
|
||||
function sendNudge(x, y) {
|
||||
fetch("/", {
|
||||
fetch("", {
|
||||
method: "POST",
|
||||
headers: {"Content-Type": "application/json"},
|
||||
referrer: "no-referrer",
|
||||
|
||||
Reference in New Issue
Block a user