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/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 ab8b32a..e845bb6 100644 --- a/send.html +++ b/send.html @@ -8,16 +8,16 @@ -
-
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");