From 1358b22a54a02607de9ace75778d17d10a282d81 Mon Sep 17 00:00:00 2001 From: Minhyeok Park Date: Tue, 15 Oct 2024 16:55:07 +0900 Subject: [PATCH] feat: add more style --- index.html | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) 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)' }