From f0cf54b55f17f189e91dc0a8a6229c84b4ef6f11 Mon Sep 17 00:00:00 2001 From: Arzumify Date: Tue, 15 Oct 2024 11:54:32 +0100 Subject: [PATCH] Shutdown FAQ --- index.html | 3 ++ login/index.html | 3 +- signup/index.html | 78 ---------------------------------------------- static/js/login.js | 10 +----- static/js/main.js | 7 +++-- 5 files changed, 10 insertions(+), 91 deletions(-) delete mode 100644 signup/index.html diff --git a/index.html b/index.html index 54e16c3..3f41a05 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,8 @@ +

Burgernotes is shutting down on October 20th, read this FAQ for more info

+


@@ -72,6 +74,7 @@
Discord

+ diff --git a/login/index.html b/login/index.html index 818b404..60d423d 100644 --- a/login/index.html +++ b/login/index.html @@ -11,6 +11,8 @@ +

Burgernotes is shutting down on November 12th, read this FAQ for more info

+
@@ -63,7 +65,6 @@
-

Homeservers
diff --git a/signup/index.html b/signup/index.html deleted file mode 100644 index 2b0aa0b..0000000 --- a/signup/index.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - Create account - Burgernotes - - - - - - - - - - - -
- - - -
-

Create a Burgernotes Account

-

Get started by picking a username and password

-

- - - - - - - - - -
Username:
Password:
-
-

-
Homeservers
- Privacy & Terms -
-
- - diff --git a/static/js/login.js b/static/js/login.js index f2d9dd9..1625cbd 100644 --- a/static/js/login.js +++ b/static/js/login.js @@ -19,7 +19,6 @@ let statusBox = document.getElementById("statusBox") let signupButton = document.getElementById("signupButton") let inputNameBox = document.getElementById("inputNameBox") let backButton = document.getElementById("backButton") -let opButton = document.getElementById("opButton") async function loginFetch(username, password, modern) { return await fetch(remote + "/api/login", { @@ -80,7 +79,6 @@ function showInput(inputType) { usernameBox.classList.remove("hidden") passwordBox.classList.add("hidden") backButton.classList.add("hidden") - opButton.classList.remove("hidden") inputContainer.classList.remove("hidden") inputNameBox.innerText = "Username:" statusBox.innerText = "Sign in with your Burgernotes account" @@ -91,7 +89,6 @@ function showInput(inputType) { passwordBox.classList.remove("hidden") backButton.classList.remove("hidden") inputContainer.classList.remove("hidden") - opButton.classList.add("hidden") inputNameBox.innerText = "Password:" currentInputType = 1 break @@ -100,7 +97,6 @@ function showInput(inputType) { signupButton.classList.add("hidden") backButton.classList.add("hidden") inputNameBox.classList.add("hidden") - opButton.classList.add("hidden") inputNameBox.innerText = "Password:" currentInputType = 2 } @@ -129,10 +125,6 @@ document.addEventListener("DOMContentLoaded", function() { document.getElementById("homeserver").innerText = "Your homeserver is: " + remote + ". " }); -opButton.addEventListener("click", () => { - window.location.href = "/signup" -}); - signupButton.addEventListener("click", () => { if (passwordBox.classList.contains("hidden")) { if (usernameBox.value === "") { @@ -232,4 +224,4 @@ backButton.addEventListener("click", () => { showInput(0) -// @license-end \ No newline at end of file +// @license-end diff --git a/static/js/main.js b/static/js/main.js index d02a016..c6fd053 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -969,11 +969,12 @@ document.addEventListener("DOMContentLoaded", async function () { } }); - if (firstNewVersion()) { - displayError("What's new in Burgernotes 2.0?\nRestyled client\nAdded changing passwords\nAdded importing notes\nChange the use of CryptoJS to Native AES GCM\nUse Argon2ID for hashing rather than the SHA family\nAdded a Proof-Of-Work CAPTCHA during signup\nMade the signup and login statuses more descriptive\nFixed various bugs and issues\nAdded markdown notes\nAdded support for uploading photos\nImproved privacy policy to be clearer about what is and isn't added\nRemoved some useless uses of cookies and replaced with localStorage\nFixed the privacy policy not redirecting correctly\nAdded a list of native clients\nMade the client support LibreJS and therefore GNU Icecat") - } +// if (firstNewVersion()) { +// displayError("What's new in Burgernotes 2.0?\nRestyled client\nAdded changing passwords\nAdded importing notes\nChange the use of CryptoJS to Native AES GCM\nUse Argon2ID for hashing rather than the SHA family\nAdded a Proof-Of-Work CAPTCHA during signup\nMade the signup and login statuses more descriptive\nFixed various bugs and issues\nAdded markdown notes\nAdded support for uploading photos\nImproved privacy policy to be clearer about what is and isn't added\nRemoved some useless uses of cookies and replaced with localStorage\nFixed the privacy policy not redirecting correctly\nAdded a list of native clients\nMade the client support LibreJS and therefore GNU Icecat") +// } await checknetwork() updateNotes() + displayError("Burgernotes is shutting down on October 20th, please refer to this FAQ for more info.") }) // @license-end