Skip to content

Commit

Permalink
doc: add loader icon for editor
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Mar 7, 2024
1 parent dfa0d44 commit a13b4fb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/docs/docs/playground.html
Expand Up @@ -34,7 +34,13 @@ <h1 class="text-xl font-semibold">✍️ Nanopublication signing playground 🕹
<button id="switch-trig-jsonld" class="p-2 text-sm rounded-md bg-slate-600 hover:bg-slate-800 text-slate-400">Switch to JSON-LD</button>

<!-- Input editor -->
<div id="rdf-input" style="min-height: 34em;"></div>
<div id="rdf-input" style="min-height: 34em;">
<div id="editor-loading-spinner" class="flex flex-col justify-center items-center" style="height: 34em;">
<i class="fas fa-spinner fa-spin fa-3x"></i>
<span class="text-sm mt-3">Loading editor...</span>
</div>
</div>


<!-- Private key input -->
<p class="text-sm text-center">
Expand Down Expand Up @@ -152,6 +158,7 @@ <h1 class="text-xl font-semibold">✍️ Nanopublication signing playground 🕹
language: 'sparql',
value: exampleTrig,
});
document.getElementById('editor-loading-spinner').style.display = 'none';
const oeditor = monaco.editor.create(rdfOutput, {
...editorsConfig,
language: 'sparql',
Expand Down

0 comments on commit a13b4fb

Please sign in to comment.