Initial commit

This commit is contained in:
Robert Nasarek 2026-06-25 09:11:23 +02:00
commit 05c65aad4d
155 changed files with 93617 additions and 0 deletions

10
viewer/viewer-settings.js Normal file
View file

@ -0,0 +1,10 @@
export const loadSettings = async () => {
const moduleUrl = new URL(import.meta.url);
const settingsPath = moduleUrl.pathname.includes('/assets/')
? '../viewer-settings.json'
: './viewer-settings.json';
const url = new URL(settingsPath, moduleUrl);
const res = await fetch(url);
console.log("Fetched viewer-settings.json", res);
return await res.json();
};