From 1bc98dc85a2401540a9b1d5fb398d43999c181e4 Mon Sep 17 00:00:00 2001 From: Ricardo Boss Date: Thu, 13 Nov 2025 15:28:17 +0100 Subject: [PATCH 1/2] Added ability to pass in (url encoded) blueprints using bp query parameter --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 098cc9f..9f8389d 100644 --- a/index.html +++ b/index.html @@ -112,7 +112,9 @@ } }); - newBlueprintString(START_EXAMPLE_BLUEPRINT); + const paramsString = window.location.search; + const searchParams = new URLSearchParams(paramsString); + newBlueprintString(searchParams.get("bp") ?? START_EXAMPLE_BLUEPRINT); showBlueprint(); // Add click handler for random color palette button From a66d77f20a2dd680a733387ccd370b744efed4bc Mon Sep 17 00:00:00 2001 From: Ricardo Boss Date: Mon, 17 Nov 2025 21:23:48 +0100 Subject: [PATCH 2/2] Added a minimal HTML file for viewing blueprints --- view.html | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 view.html diff --git a/view.html b/view.html new file mode 100644 index 0000000..54003ae --- /dev/null +++ b/view.html @@ -0,0 +1,38 @@ + + + + + + Factorio Blueprint Visualizer + + + + + + + + + + + + + + + + + + + +
+ + +