From 60a62d867c7fae9fecbe95ac7089362bf8f28b82 Mon Sep 17 00:00:00 2001 From: estebanrfp Date: Tue, 7 Apr 2020 18:55:57 +0200 Subject: [PATCH 1/5] update todo.html - keep it simple --- examples/vanilla/todo.html | 99 ++++++++++++++++++++------------------ 1 file changed, 53 insertions(+), 46 deletions(-) diff --git a/examples/vanilla/todo.html b/examples/vanilla/todo.html index 7087f529..7dbeab97 100644 --- a/examples/vanilla/todo.html +++ b/examples/vanilla/todo.html @@ -1,53 +1,60 @@ -

Thoughts

+

Thoughts

-
- - -
+
+ + +
- - - - - + + + + + - + \ No newline at end of file From 964b1c9fcf214b0f8754a3696cd1fca70a0ea222 Mon Sep 17 00:00:00 2001 From: estebanrfp Date: Tue, 7 Apr 2020 19:17:00 +0200 Subject: [PATCH 2/5] +indentation --- examples/vanilla/todo.html | 83 ++++++++++++++++++-------------------- 1 file changed, 40 insertions(+), 43 deletions(-) diff --git a/examples/vanilla/todo.html b/examples/vanilla/todo.html index 7dbeab97..8f12a29e 100644 --- a/examples/vanilla/todo.html +++ b/examples/vanilla/todo.html @@ -1,60 +1,57 @@ - -

Thoughts

+

Thoughts

-
- - -
+
+ + +
- + - + - + document.getElementById('form').addEventListener('submit', e => { + e.preventDefault() + const data = input.value + gun.set(data) + input.value = '' + }) + - \ No newline at end of file From f0b041cdb13493780b28e0353338f08ba6d9c9b6 Mon Sep 17 00:00:00 2001 From: estebanrfp Date: Wed, 8 Apr 2020 18:13:33 +0200 Subject: [PATCH 3/5] improve indentation code - vanilla folder examples --- examples/vanilla/screen.html | 121 +++++++++++++++++++---------------- examples/vanilla/todo.html | 18 ++++-- 2 files changed, 79 insertions(+), 60 deletions(-) diff --git a/examples/vanilla/screen.html b/examples/vanilla/screen.html index 28467355..a0fd9b9a 100644 --- a/examples/vanilla/screen.html +++ b/examples/vanilla/screen.html @@ -1,66 +1,77 @@ + - -
- - -
+ + Think + + - + + +
+ + +
- - const video = document.querySelector('#video') - const playButton = document.querySelector('#play') - const recordButton = document.querySelector('#record') + + playButton.innerText = 'Stop' + record.playing = true + + gun.get('test').get('screen').once(data => { + if (!data) { return } + video.src = data + video.play() + }) + }, false) + + + + \ No newline at end of file diff --git a/examples/vanilla/todo.html b/examples/vanilla/todo.html index 8f12a29e..8706fd4f 100644 --- a/examples/vanilla/todo.html +++ b/examples/vanilla/todo.html @@ -1,4 +1,11 @@ + + + + Think + + +

Thoughts

@@ -9,13 +16,14 @@
    - + + \ No newline at end of file From f8e2230b0459124d51b0af8b8a34fe8163de503c Mon Sep 17 00:00:00 2001 From: estebanrfp Date: Mon, 20 Apr 2020 20:30:30 +0200 Subject: [PATCH 4/5] added vanilla js version of user.html --- examples/vanilla/user.html | 58 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 examples/vanilla/user.html diff --git a/examples/vanilla/user.html b/examples/vanilla/user.html new file mode 100644 index 00000000..84a1e6df --- /dev/null +++ b/examples/vanilla/user.html @@ -0,0 +1,58 @@ + + +

    User

    + +
    + + + + +
    + +
      + +
      + + +
      + + + + + From 1d853467706dc5c6cbf60d884c8c7e2db887c660 Mon Sep 17 00:00:00 2001 From: estebanrfp Date: Mon, 20 Apr 2020 21:15:36 +0200 Subject: [PATCH 5/5] replaced gun peers url to location.origin --- examples/vanilla/user.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vanilla/user.html b/examples/vanilla/user.html index 84a1e6df..c9319ade 100644 --- a/examples/vanilla/user.html +++ b/examples/vanilla/user.html @@ -20,7 +20,7 @@