cryptpadtab

encrypted notes in a browser tab  https://p.ce9e.org/cryptpadtab/
git clone https://git.ce9e.org/cryptpadtab.git

commit
2acd77b2f05b4b8f6aa97fb7d161880249569fbf
parent
af2bc22d27ed580f8493855cd060867813140ed4
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-05-29 04:37
store content in URL

Diffstat

A static/main.js 7 +++++++

1 files changed, 7 insertions, 0 deletions


diff --git a/static/main.js b/static/main.js

@@ -0,0 +1,7 @@
   -1     1 var textarea = document.querySelector('textarea');
   -1     2 
   -1     3 textarea.value = location.hash.substr(1);
   -1     4 
   -1     5 textarea.addEventListener('input', event => {
   -1     6 	history.replaceState(null, '', '#' + textarea.value);
   -1     7 });