This commit is contained in:
maaa 2023-11-03 17:39:48 +01:00
parent 72e5a8b41f
commit 3b55efac25
9 changed files with 111 additions and 3 deletions

6
main
View File

@ -118,10 +118,16 @@ def login():
def privacy(): def privacy():
return render_template("privacy.html") return render_template("privacy.html")
@app.route("/shutdownfaq")
def shutdown():
return render_template("shutdown.html")
# API # API
@app.route("/api/signup", methods=("GET", "POST")) @app.route("/api/signup", methods=("GET", "POST"))
def apisignup(): def apisignup():
if request.method == "POST": if request.method == "POST":
return {}, 500
data = request.get_json() data = request.get_json()
username = data["username"] username = data["username"]
password = data["password"] password = data["password"]

View File

@ -555,6 +555,16 @@ body {
font-weight: 900; font-weight: 900;
} }
.alertDiv {
position: fixed;
margin: 0;
width: 100%;
background-color: #ffffeb;
height: 25px;
z-index: 9999;
top: 0;
}
/* main */ /* main */
.mainDiv { .mainDiv {

View File

@ -123,7 +123,7 @@ function displayError(message) {
errorDiv.classList.remove("hidden") errorDiv.classList.remove("hidden")
optionsCoverDiv.classList.remove("hidden") optionsCoverDiv.classList.remove("hidden")
errorMessageThing.innerText = message errorMessageThing.innerHTML = message
} }
closeErrorButton.addEventListener("click", (event) => { closeErrorButton.addEventListener("click", (event) => {
@ -611,3 +611,5 @@ removeBox.addEventListener("click", (event) => {
}) })
} }
}); });
displayError("Burgernotes is shutting down on November 12th, please refer to <a href='/shutdownfaq'>this FAQ</a> for more info.")

View File

@ -9,6 +9,8 @@
<link rel="stylesheet" type="text/css" href="/static/css/style.css" /> <link rel="stylesheet" type="text/css" href="/static/css/style.css" />
</head> </head>
<p class="alertDiv">Burgernotes is shutting down on November 12th, read <a href="/shutdownfaq">this FAQ</a> for more info</p>
<body> <body>
<h2 class="w300">{{ errorMessage }}</h2> <h2 class="w300">{{ errorMessage }}</h2>
{{ errorCode }} | {{ errorMessage }} {{ errorCode }} | {{ errorMessage }}

View File

@ -11,6 +11,8 @@
</head> </head>
<p class="alertDiv">Burgernotes is shutting down on November 12th, read <a href="/shutdownfaq">this FAQ</a> for more info</p>
<body> <body>
<div class="inoutdiv"> <div class="inoutdiv">
<h2 class="w300">log in</h2> <h2 class="w300">log in</h2>

View File

@ -11,6 +11,8 @@
<meta content="simple note-taking app :3" property="og:description" /> <meta content="simple note-taking app :3" property="og:description" />
</head> </head>
<p class="alertDiv">Burgernotes is shutting down on November 12th, read <a href="/shutdownfaq">this FAQ</a> for more info</p>
<body> <body>
<div class="mainDiv"> <div class="mainDiv">
<div class="startDiv"> <div class="startDiv">

View File

@ -9,6 +9,8 @@
<link rel="stylesheet" type="text/css" href="/static/css/style.css" /> <link rel="stylesheet" type="text/css" href="/static/css/style.css" />
</head> </head>
<p class="alertDiv">Burgernotes is shutting down on November 12th, read <a href="/shutdownfaq">this FAQ</a> for more info</p>
<body> <body>
<h1 class="w300">burgernotes privacy policy</h1> <h1 class="w300">burgernotes privacy policy</h1>
<h2 class="w300">Preamble</h2> <h2 class="w300">Preamble</h2>

77
templates/shutdown.html Normal file
View File

@ -0,0 +1,77 @@
<!DOCTYPE html>
<html>
<head>
<title>burgernotes</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="/static/css/style.css" />
</head>
<body>
<h2 class="w300">Burgernotes Discontinuation FAQ</h2>
On November 12, 2023, Burgernotes will shut down.
<br><br>
How will this affect me?
<ul>
<li>You'll no longer be able to access Burgernotes, and all of your notes.</li>
<li>You may download your notes before November 12, 2023.</li>
<li>Your data will be deleted after November 12, 2023.</li>
<li>Third-party instances will be unaffected, but will likely no longer be maintained.</li>
<li>As of November 3, 2023, you may no longer create a new burgernotes account.</li>
</ul>
<h3 class="w300">Downloading your notes</h3>
<ul>
<li>Open Burgernotes</li>
<li>Open the settings menu</li>
<li>Press "export notes"</li>
</ul>
Your notes will be saved to a JSON file.
<h3 class="w300">Alternatives to Burgernotes</h3>
<ul>
<li>Standard Notes</li>
<li>Joplin</li>
</ul>
<h3 class="w300">Special thanks</h3>
Special thanks to these amazing people:
<ul>
<li>hippoz</li>
<li>ctapak</li>
<li>Mollomm1</li>
<li>Tracker-Friendly</li>
<li>Karimrir</li>
<li>Pandarose</li>
<li>Neptune</li>
<li class="hidden" id="youThing"></li>
</ul>
</body>
<style>
body {
margin-left: 15px;
}
</style>
<script>
fetch("/api/userinfo", {
method: "POST",
body: JSON.stringify({
secretKey: localStorage.getItem("DONOTSHARE-secretkey")
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
}
})
.then((response) => {
async function doStuff() {
let responseData = await response.json()
let youThing = document.getElementById("youThing")
youThing.classList.remove("hidden")
youThing.innerText = "You, " + responseData["username"] + ", for using Burgernotes!"
}
doStuff()
})
</script>
</html>

View File

@ -11,16 +11,21 @@
</head> </head>
<p class="alertDiv">Burgernotes is shutting down on November 12th, read <a href="/shutdownfaq">this FAQ</a> for more info</p>
<body> <body>
<div class="inoutdiv"> <div class="inoutdiv">
<h2 class="w300">sign up</h2> <h2 class="w300">sign up</h2>
<p>sign up for a burgernotes account</p> <p>You may no longer sign up, read <a href="/shutdownfaq">this FAQ</a>.</p>
<p>If you have an existing account, please <a href="/login">sign in</a>.</p>
<!--<p>sign up for a burgernotes account</p>
<p id="statusBox"></p> <p id="statusBox"></p>
<input id="usernameBox" type="text" placeholder="Username"> <input id="usernameBox" type="text" placeholder="Username">
<input id="passwordBox" type="password" placeholder="Password"> <input id="passwordBox" type="password" placeholder="Password">
<button id="signupButton">sign up</button><br><br> <button id="signupButton">sign up</button><br><br>
<p>please note that it's impossible to reset your password, do not forget it!</p> <p>please note that it's impossible to reset your password, do not forget it!</p>
<p>already have an account? if so, <a href="/login">log in</a> instead</p> <p>already have an account? if so, <a href="/login">log in</a> instead</p>
-->
</div> </div>
<script type="text/javascript" src="/static/js/signup.js"></script> <script type="text/javascript" src="/static/js/signup.js"></script>