1
2
3
4
5
6
7
8
9
10
11
import { fetch } from "https://esm.town/v/std/fetch";
export const kbr = async () => {
const baseUrl = "https://viewerd.kbr.be/display";
const itemId = "B/9/9/1/2/4/2/1/0000-00-00_00";
const imageId = "BE-KBR00_B-19912421_0000-00-00_00_0001";
const fetchText = (url) => fetch(url).then((response) => response.text());
const url = `${baseUrl}/${itemId}/${imageId}.txt`;
const dimensions = await fetchText(url);
return dimensions.split("x").map((c) => Number(c));
};