Update index.js
This commit is contained in:
parent
a525ac5e52
commit
e0e633977a
1 changed files with 2 additions and 2 deletions
|
@ -645,7 +645,7 @@ window.onload = () => {
|
||||||
json = { embed: {}, content: "" };
|
json = { embed: {}, content: "" };
|
||||||
embed.style.removeProperty('border-color');
|
embed.style.removeProperty('border-color');
|
||||||
picker.source.style.removeProperty('background');
|
picker.source.style.removeProperty('background');
|
||||||
update(json); buildGui(json); editor.setValue('{}');
|
update(json); buildGui(json); editor.setValue(Object.toString(json));
|
||||||
document.querySelectorAll('.gui>.item').forEach(e => e.classList.add('active'));
|
document.querySelectorAll('.gui>.item').forEach(e => e.classList.add('active'));
|
||||||
content.focus();
|
content.focus();
|
||||||
})
|
})
|
||||||
|
@ -653,4 +653,4 @@ window.onload = () => {
|
||||||
let colrs = document.querySelector('.colrs');
|
let colrs = document.querySelector('.colrs');
|
||||||
document.querySelector('.pickerToggle').addEventListener('click', () => colrs.classList.toggle('display'));
|
document.querySelector('.pickerToggle').addEventListener('click', () => colrs.classList.toggle('display'));
|
||||||
update(json);
|
update(json);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue