From 90a75d34888f880bc94a3eed976a53240ed7414b Mon Sep 17 00:00:00 2001 From: Nathan Hadley Date: Fri, 19 Jul 2024 08:57:47 +0100 Subject: [PATCH 1/2] Accessibility improvements --- index.html | 6 +++--- receive.html | 2 +- send.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 8021a3a..5763791 100644 --- a/index.html +++ b/index.html @@ -10,19 +10,19 @@
-

raven

+

raven

Carrier Pigeon

Send files with plaintext

diff --git a/receive.html b/receive.html index 53490b3..d0a4bfd 100644 --- a/receive.html +++ b/receive.html @@ -14,7 +14,7 @@
diff --git a/send.html b/send.html index ab8b32a..10423ba 100644 --- a/send.html +++ b/send.html @@ -10,14 +10,14 @@
From d92691df079c0d6a12a39844a8883fac496a0aa9 Mon Sep 17 00:00:00 2001 From: Nathan Hadley Date: Fri, 19 Jul 2024 18:53:27 +0100 Subject: [PATCH 2/2] UX improvements --- receive.js | 2 ++ send.html | 8 ++++---- send.js | 14 +++++++------- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/receive.js b/receive.js index d4a9532..0b8a5bd 100644 --- a/receive.js +++ b/receive.js @@ -34,5 +34,7 @@ function download(string) { document.getElementById("download-icon").innerText = "downloading"; document.getElementById("download-text").innerText = "Downloading..."; + + location.href = '.'; } } \ No newline at end of file diff --git a/send.html b/send.html index 10423ba..e845bb6 100644 --- a/send.html +++ b/send.html @@ -8,10 +8,10 @@ -
-
diff --git a/send.js b/send.js index 0a6b404..79838a7 100644 --- a/send.js +++ b/send.js @@ -1,4 +1,4 @@ -function upload() { +function openFile() { let input = document.createElement('input'); input.type = 'file'; @@ -17,14 +17,14 @@ function upload() { } function success(string) { - document.getElementById("upload-card").classList.remove("card-flat-bottom"); - document.getElementById("upload-card").classList.add("card-success-flat-bottom"); + document.getElementById("open-card").classList.remove("card-flat-bottom"); + document.getElementById("open-card").classList.add("card-success-flat-bottom"); - document.getElementById("upload-button").classList.add("button-success"); - document.getElementById("upload-button").inert = "true"; + document.getElementById("open-button").classList.add("button-success"); + document.getElementById("open-button").inert = "true"; - document.getElementById("upload-icon").innerText = "check"; - document.getElementById("upload-text").innerText = "File uploaded"; + document.getElementById("open-icon").innerText = "check"; + document.getElementById("open-text").innerText = "File opened"; document.getElementById("copy-card").classList.remove("card-subtle-flat-top"); document.getElementById("copy-card").classList.add("card-flat-top");