more shit
This commit is contained in:
BIN
frontend/public/favicon.ico
Normal file
BIN
frontend/public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 196 KiB |
BIN
frontend/public/scene_and_crowd.png
Normal file
BIN
frontend/public/scene_and_crowd.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 199 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 138 KiB |
BIN
frontend/public/scene_only.png
Normal file
BIN
frontend/public/scene_only.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 484 KiB |
@@ -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