set MFCG iframe to preview mode

This commit is contained in:
Azgaar 2021-12-16 00:51:12 +03:00
parent 2001a07cc3
commit f57f004f9e
3 changed files with 2 additions and 3 deletions

View file

@ -38,7 +38,6 @@ textarea {
iframe { iframe {
border: 0; border: 0;
pointer-events: none;
width: 100%; width: 100%;
} }

View file

@ -2033,7 +2033,7 @@
</div> </div>
</div> </div>
<div id="mfcgPreviewSection" data-tip="Burg preview in the Medieval Fantasy City Generator. Default seed is a conbimation of map seed and burg id" style="display: flex; flex-direction: column"> <div id="mfcgPreviewSection" data-tip="Burg preview in the Medieval Fantasy City Generator. Default seed is a combination of map seed and burg id" style="display: flex; flex-direction: column">
<div> <div>
See in <a id="mfcgLink" target="_blank">City Generator by Watabou</a>. See in <a id="mfcgLink" target="_blank">City Generator by Watabou</a>.
Seed: <input id="mfcgBurgSeed" style="width: 10em" type="number" min=1 max="1e13" step="1" /> Seed: <input id="mfcgBurgSeed" style="width: 10em" type="number" min=1 max="1e13" step="1" />

View file

@ -405,7 +405,7 @@ function editBurg(id) {
function updateMFCGFrame(burg) { function updateMFCGFrame(burg) {
const mfcgURL = getMFCGlink(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); document.getElementById("mfcgLink").setAttribute("href", mfcgURL);
} }