mirror of
https://github.com/amark/gun.git
synced 2026-03-06 09:01:36 +00:00
update basics
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<textarea style="width: 100%; height: 100%;" placeholder="paste here!"></textarea>
|
||||
|
||||
<script src="../jquery.js"></script>
|
||||
<script src="../../../gun/gun.js"></script>
|
||||
|
||||
<script>
|
||||
//var gun = Gun(location.origin + '/gun'), to;
|
||||
var gun = Gun('https://gunjs.herokuapp.com/gun'), to;
|
||||
var gun = Gun(location.origin + '/gun');
|
||||
|
||||
var paste = gun.get('test').get('paste').on(function(data){
|
||||
var to, paste = gun.get('test').get('paste').on(function(data){
|
||||
$('textarea').val(data);
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user