This commit is contained in:
Mark Nadal
2021-08-21 20:03:09 -07:00
parent 824319afab
commit cdca88e60b
11 changed files with 59 additions and 15457 deletions

View File

@@ -1,9 +1,9 @@
<!DOCTYPE html>
<style>html, body, textarea { width: 100%; height: 100%; padding: 0; margin: 0; }</style>
<textarea id="paste" placeholder="paste here!"></textarea>
<script src="../../../gun/gun.js"></script>
<script>
<script src="../../../gun/gun.js"></script><script>
gun = GUN(location.origin + '/gun');
paste.oninput = () => { gun.get('test').get('paste').put(paste.value) }
gun.get('test').get('paste').on((data) => { paste.value = data });
copy = gun.get('test').get('paste');
paste.oninput = () => { copy.put(paste.value) };
copy.on((data) => { paste.value = data });
</script>