mirror of
https://github.com/amark/gun.git
synced 2025-10-14 00:59:35 +00:00
update basics
This commit is contained in:
parent
f8bb17e27f
commit
1ba73dd47b
@ -1,13 +1,14 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<textarea style="width: 100%; height: 100%;" placeholder="paste here!"></textarea>
|
<textarea style="width: 100%; height: 100%;" placeholder="paste here!"></textarea>
|
||||||
|
|
||||||
<script src="../jquery.js"></script>
|
<script src="../jquery.js"></script>
|
||||||
<script src="../../../gun/gun.js"></script>
|
<script src="../../../gun/gun.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
//var gun = Gun(location.origin + '/gun'), to;
|
var gun = Gun(location.origin + '/gun');
|
||||||
var gun = Gun('https://gunjs.herokuapp.com/gun'), to;
|
|
||||||
|
|
||||||
var paste = gun.get('test').get('paste').on(function(data){
|
var to, paste = gun.get('test').get('paste').on(function(data){
|
||||||
$('textarea').val(data);
|
$('textarea').val(data);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<html><body>
|
<!DOCTYPE html>
|
||||||
<style>
|
<style>
|
||||||
html, body {
|
html, body {
|
||||||
background: rgb(245, 245, 245);
|
background: rgb(245, 245, 245);
|
||||||
@ -137,4 +137,3 @@ $('#search').on('blur', function(e){
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body></html>
|
|
@ -1,3 +1,5 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<video id="video" width="100%"></video>
|
<video id="video" width="100%"></video>
|
||||||
<center>
|
<center>
|
||||||
<button id="record">Record</button>
|
<button id="record">Record</button>
|
||||||
@ -8,7 +10,7 @@
|
|||||||
<script src="../../../gun/gun.js"></script>
|
<script src="../../../gun/gun.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var gun = Gun();
|
var gun = Gun(location.origin + '/gun');
|
||||||
var record = {recorder: null, recording: false};
|
var record = {recorder: null, recording: false};
|
||||||
|
|
||||||
$('#record').on('click', ()=>{
|
$('#record').on('click', ()=>{
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<h1>Tables</h1>
|
<h1>Tables</h1>
|
||||||
|
|
||||||
<form id="sign">
|
<form id="sign">
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<h1>User</h1>
|
<h1>User</h1>
|
||||||
|
|
||||||
<form id="sign">
|
<form id="sign">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user