You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
offline-octopus/examples/editor.html.minimal

6 lines
313 B

<html>
<textarea cols=60 rows=10></textarea>
<button onclick="fetch('/editor/save?content='+document.querySelector('textarea').value)">save</button>
<script>window.onload=_=>fetch('/editor/read').then( r => r.json() ).then( r => document.querySelector('textarea').value = r.msg)</script>
</html>