On function editor, if the editor loads slow enough then you can see the code/environment json as html text so I changed the text to transparent to avoid this, not a real fix (For some reason I cant find any mention of other people having this issue)

This commit is contained in:
Peter Stockings
2024-03-29 22:34:57 +11:00
parent 3ce976507e
commit 4b30deb709

View File

@@ -47,7 +47,7 @@
</div>
<div id="editor" class="relative rounded-lg shadow-lg p-4">{{ script }}</div>
<div id="editor" class="relative rounded-lg shadow-lg p-4 text-opacity-0">{{ script }}</div>
<script>
var editor = ace.edit("editor");
editor.setOptions({
@@ -80,7 +80,8 @@
</div>
<div id="editor-environment" class="relative rounded-lg shadow-lg p-4 mb-2">{{ environment_info }}</div>
<div id="editor-environment" class="relative rounded-lg shadow-lg p-4 mb-2 text-opacity-0">{{ environment_info }}
</div>
<script>
var editor_environment = ace.edit("editor-environment");
editor_environment.setOptions({