mirror of
https://github.com/amark/gun.git
synced 2026-02-27 13:43:22 +00:00
clean
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user