🔨 fix demo page
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
import * as grid from "@snk/compute/__fixtures__/grid";
|
import * as grid from "@snk/compute/__fixtures__/grid";
|
||||||
|
// import { greet } from "@snk/compute-rust";
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
|
import("./index").catch((e) => console.error("Error importing `index.js`:", e));
|
||||||
|
|
||||||
const container = document.createElement("div");
|
const container = document.createElement("div");
|
||||||
container.style.fontFamily = "helvetica";
|
container.style.fontFamily = "helvetica";
|
||||||
@@ -14,7 +18,7 @@ for (const demo of ["getAvailableRoutes", "getBestRoute"]) {
|
|||||||
const a = document.createElement("a");
|
const a = document.createElement("a");
|
||||||
a.style.display = "block";
|
a.style.display = "block";
|
||||||
a.innerText = `${demo} - ${g}`;
|
a.innerText = `${demo} - ${g}`;
|
||||||
a.href = `/demo-${demo}.html?grid=${g}`;
|
a.href = `./demo-${demo}.html?grid=${g}`;
|
||||||
|
|
||||||
container.appendChild(a);
|
container.appendChild(a);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user