docs: better PWA, more responsive, better description

This commit is contained in:
Harttle
2022-01-29 00:37:43 +08:00
committed by Harttle
parent 9da41c8a37
commit 527858fc14
21 changed files with 164 additions and 17 deletions
+12 -1
View File
@@ -76,9 +76,20 @@
editor.on('change', update);
dataEditor.on('change', update);
update();
ready();
function ready() {
const loader = document.querySelector('.loader');
loader.classList.add('hide');
loader.setAttribute('aria-busy', false);
const editors = document.querySelector('#editors');
editors.classList.remove('hide');
editors.setAttribute('aria-hide', false);
}
function createEditor(id, lang) {
var editor = ace.edit(id);
const editor = ace.edit(id);
editor.setTheme('ace/theme/tomorrow_night');
editor.getSession().setMode('ace/mode/' + lang);
editor.getSession().setOptions({