actual editor with backup
This commit is contained in:
@@ -1 +0,0 @@
|
||||
test
|
||||
5
examples/editor.html
Normal file
5
examples/editor.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<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>
|
||||
5
examples/editor.html.minimal
Normal file
5
examples/editor.html.minimal
Normal file
@@ -0,0 +1,5 @@
|
||||
<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>
|
||||
14
examples/pwa/api.js
Normal file
14
examples/pwa/api.js
Normal file
@@ -0,0 +1,14 @@
|
||||
let routes = [
|
||||
'/',
|
||||
'/pwa',
|
||||
'/spawn',
|
||||
'/interface/unregister',
|
||||
'/interface/register',
|
||||
'/services/unregister',
|
||||
'/services/register',
|
||||
'/services',
|
||||
'/hmdlink/set',
|
||||
'/hmdlink',
|
||||
'/json',
|
||||
'/localprototypes',
|
||||
]
|
||||
Reference in New Issue
Block a user