diff --git a/index.html b/index.html index a7bcb57..077ca6a 100644 --- a/index.html +++ b/index.html @@ -21,6 +21,10 @@ @@ -104,7 +126,7 @@ require(['vs/editor/editor.main'], function () { var editor = monaco.editor.create(document.getElementById('main'), { - value: '', + value: 'Type Something Here', language: 'json', automaticLayout: true, minimap: { enabled: false }, @@ -116,6 +138,7 @@ wordWrap: true }); + render() function render () { const value = editor.getValue() try { document.getElementById('base64d').value = atob(value) } catch { document.getElementById('base64d').value ='(err)' }