🚀 prune layer algorithm

This commit is contained in:
platane
2020-10-13 21:05:33 +02:00
committed by Platane
parent d7423423f8
commit fe821f6251
8 changed files with 435 additions and 19 deletions

View File

@@ -4,7 +4,7 @@ const container = document.createElement("div");
container.style.fontFamily = "helvetica";
document.body.appendChild(container);
for (const demo of ["getAvailableRoutes", "getBestRoute"]) {
for (const demo of require("./demo.json").filter((x: any) => x !== "index")) {
const title = document.createElement("h1");
title.innerText = demo;
@@ -14,7 +14,7 @@ for (const demo of ["getAvailableRoutes", "getBestRoute"]) {
const a = document.createElement("a");
a.style.display = "block";
a.innerText = `${demo} - ${g}`;
a.href = `./demo-${demo}.html?grid=${g}`;
a.href = `./${demo}.html?grid=${g}`;
container.appendChild(a);
}