From f57f004f9e7ae311c6542f7007304aca1b4f7ba5 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Thu, 16 Dec 2021 00:51:12 +0300 Subject: [PATCH] set MFCG iframe to preview mode --- index.css | 1 - index.html | 2 +- modules/ui/burg-editor.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/index.css b/index.css index 9cdcbbe6..a45f063b 100644 --- a/index.css +++ b/index.css @@ -38,7 +38,6 @@ textarea { iframe { border: 0; - pointer-events: none; width: 100%; } diff --git a/index.html b/index.html index 4f63f6f7..630f43b8 100644 --- a/index.html +++ b/index.html @@ -2033,7 +2033,7 @@ -
+
See in City Generator by Watabou. Seed: diff --git a/modules/ui/burg-editor.js b/modules/ui/burg-editor.js index 7af55c29..18e589df 100644 --- a/modules/ui/burg-editor.js +++ b/modules/ui/burg-editor.js @@ -405,7 +405,7 @@ function editBurg(id) { function updateMFCGFrame(burg) { const mfcgURL = getMFCGlink(burg); - document.getElementById("mfcgPreview").setAttribute("src", mfcgURL); + document.getElementById("mfcgPreview").setAttribute("src", mfcgURL + "&preview=1"); document.getElementById("mfcgLink").setAttribute("href", mfcgURL); }