Skip to content

Commit 3f911f7

Browse files
committed
Removes test input
1 parent 7375f7b commit 3f911f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/generate.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
'https://test.draw.io/?dev=1&lightbox=1&border=10&' :
7373
'https://www.draw.io/?lightbox=1&border=10&';
7474
var link = prefix + 'create=' + encodeURIComponent(JSON.stringify({type: 'mermaid', data: value}));
75+
document.getElementById('preview').removeAttribute('srcdoc');
7576
document.getElementById('preview').src = link;
7677
prefix = (urlParams['dev'] == '1') ? 'https://test.draw.io/?dev=1&' : 'https://www.draw.io/?';
7778
link = prefix + 'create=' + encodeURIComponent(JSON.stringify({type: 'mermaid', data: value}));
@@ -86,11 +87,11 @@ <h2>Generate diagram</h2>
8687
<option value="gemini">Gemini</option>
8788
</select> API Key: <input size="50" id="apikey">
8889
<br><br>
89-
<textarea rows="3" cols="80" id="prompt" placeholder="Prompt" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off">five tier sequence diagram on how to order fast food online</textarea>
90+
<textarea rows="3" cols="80" id="prompt" placeholder="Diagram description, eg. five tier sequence diagram on how to order fast food online" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off"></textarea>
9091
<br/>
9192
<button id="generate" onclick="generate();return false;">Generate</button><br/><br/>
9293
<textarea rows="19" cols="36" id="mermaid" placeholder="Mermaid Syntax" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off"></textarea>
93-
<iframe id="preview" width="340" height="298" frameborder="0" style="border:1px solid gray;"></iframe>
94+
<iframe id="preview" srcdoc="<div style='color:gray';>Preview</div>" width="340" height="298" frameborder="0" style="border:1px solid gray;resize:both;"></iframe>
9495
<br/>
9596
<button onclick="preview();return false;">Update</button>
9697
<span style="margin-left:4px;" id="link"></span>

0 commit comments

Comments
 (0)