From ced9ba1384602d00cb3b1de5c4dde3e950bb6e95 Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 2 Feb 2024 18:27:47 +0000 Subject: [PATCH] Changed MQTT server to local and fixed offset --- iframe.html | 19 ++++++++++++------- src/routes/+page.svelte | 9 ++++++--- src/routes/admin/+page.svelte | 4 ++-- src/routes/control/+page.svelte | 2 +- 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/iframe.html b/iframe.html index 5464dcc..6d95ebf 100644 --- a/iframe.html +++ b/iframe.html @@ -6,7 +6,7 @@ html{ background-color: pink; } -body{ +div{ margin: 0; padding: 0; display: flex; @@ -27,10 +27,15 @@ iframe{ } - - - - - - +
+ + + + + + + + + +
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index f8bfab1..31dc10b 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -59,7 +59,7 @@ let display_state = "init"; /** @type {string} */ let display_class = "side-display"; -const client = mqtt.connect("ws://metznet.ca:8883"); +const client = mqtt.connect("ws://127.0.0.1:8883"); client.on("connect", () => { @@ -364,8 +364,9 @@ p { .gif-foreground { z-index: 1; - position: relative; - top: -103.3%; + position: absolute; + top: 0; + height: 100%; width: 100%; } @@ -376,6 +377,8 @@ p { .gif-background { z-index: 0; + position: absolute; + top: 0; height: 100%; width: 100%; } diff --git a/src/routes/admin/+page.svelte b/src/routes/admin/+page.svelte index b7e8264..49f9183 100644 --- a/src/routes/admin/+page.svelte +++ b/src/routes/admin/+page.svelte @@ -9,7 +9,7 @@ let led_sizes = { "side": { width: 896, height: 128 } } -const client = mqtt.connect("ws://metznet.ca:8883"); +const client = mqtt.connect("ws://127.0.0.1:8883"); let displays = {}; let division_names = {}; let divisions = {}; @@ -101,4 +101,4 @@ client.on("message", (topic, message) => { {/each} {/if} - \ No newline at end of file + diff --git a/src/routes/control/+page.svelte b/src/routes/control/+page.svelte index a6243b8..be2e83a 100644 --- a/src/routes/control/+page.svelte +++ b/src/routes/control/+page.svelte @@ -1,7 +1,7 @@