update basics

This commit is contained in:
Mark Nadal 2019-11-09 14:56:16 -08:00
parent f8bb17e27f
commit 1ba73dd47b
5 changed files with 19 additions and 13 deletions

View File

@ -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);
}) })

View File

@ -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>

View File

@ -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', ()=>{

View File

@ -1,3 +1,5 @@
<!DOCTYPE html>
<h1>Tables</h1> <h1>Tables</h1>
<form id="sign"> <form id="sign">

View File

@ -1,3 +1,5 @@
<!DOCTYPE html>
<h1>User</h1> <h1>User</h1>
<form id="sign"> <form id="sign">