mirror of
https://github.com/AbaTekNTNU/followspot-psn.git
synced 2025-12-06 22:03:05 +00:00
more shit
This commit is contained in:
@@ -27,12 +27,20 @@
|
||||
|
||||
ws.onmessage = (event) => {
|
||||
const data = JSON.parse(event.data);
|
||||
for (const tracker of data) {
|
||||
tracker.x *= width;
|
||||
tracker.y *= height;
|
||||
console.log(data)
|
||||
|
||||
if (data.refresh && image) {
|
||||
image.src = `/background_image?${Math.random()}`;
|
||||
return;
|
||||
}
|
||||
|
||||
else {
|
||||
for (const tracker of data) {
|
||||
tracker.x *= width;
|
||||
tracker.y *= height;
|
||||
}
|
||||
trackers = data;
|
||||
}
|
||||
trackers = data;
|
||||
console.log(trackers);
|
||||
};
|
||||
};
|
||||
|
||||
@@ -61,7 +69,7 @@
|
||||
<div class="flex h-screen items-center justify-center">
|
||||
<div class="relative">
|
||||
<img
|
||||
src="/revy25_scene_psn_tekst.png"
|
||||
src="/background_image?342038402"
|
||||
alt=""
|
||||
bind:this={image}
|
||||
class="max-w-screen max-h-screen"
|
||||
|
||||
@@ -5,7 +5,7 @@ import Container from "../components/Container.svelte";
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" type="image/webp" href="/favicon.webp" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<meta
|
||||
name="viewport"
|
||||
|
||||
Reference in New Issue
Block a user