Minor improvements

This commit is contained in:
Andrew-71 2024-03-26 14:44:58 +03:00
parent 958b69dc08
commit b06c35b984
4 changed files with 21 additions and 20 deletions

View file

@ -3,17 +3,18 @@
Simple plaintext diary. Simple plaintext diary.
This project is *very* opinionated and minimal, and is designed primarily for my usage. This project is *very* opinionated and minimal, and is designed primarily for my usage.
As a result of this, it is also neither secure nor idiot-proof. As a result of this, it is also neither secure nor stable.
## Features: ## Features:
* Each day, you get a txt file. You have until 23:59 of that very day to finalise it. * Each day, you get a text file. You have until 23:59 of that very day to finalise it.
* At any moment, you can append a single line to log.txt * At any moment, you can append a single line to log.txt
* You can save named notes to document milestones, big events, or just a nice game you played this month * You can save named notes to document milestones, big events, or just a nice game you played this month
* There is also a readme.txt file (just like this one, except you get to write it!) * There is also a readme.txt file (just like this one, except you get to write it!)
* You can easily export everything in a zip file for backups * You can easily export everything in a zip file for backups
* Everything is plain(text) and simple. No databases, encryption, OAuth, or anything fancy. Even the password is plainte- *wait is this a feature?* * Everything is plain(text) and simple. No databases, encryption, OAuth, or anything fancy. Even the password is plainte- *wait is this a feature?*
* Optional Telegram notifications for failed login attempts are present * Docker support (in fact, that's probably the best way to run this)
* Optional Telegram notifications for failed login attempts
## Data format: ## Data format:
``` ```

View file

@ -21,12 +21,12 @@
<footer> <footer>
<p><a href="/">home </a> | <a href="/days">previous days</a> | <a href="/api/readme">readme.txt</a></p> <p><a href="/">home </a> | <a href="/days">previous days</a> | <a href="/api/readme">readme.txt</a></p>
</footer> </footer>
<script defer>
updateDate()
beginDateUpdater()
loadPrevious()
</script>
</body> </body>
<script defer>
updateDate()
beginDateUpdater()
loadPrevious()
</script>
</html> </html>

View file

@ -16,18 +16,18 @@
</header> </header>
<main> <main>
<h2 style="margin-bottom:0;"><label for="day">Your day so far:</label></h2> <h2 style="margin-bottom:0;"><label for="day">Your day so far:</label></h2>
<textarea id="day" name="Day entry" cols="40" rows="15" style="max-width: 640px; width: 100%"></textarea> <textarea id="day" cols="40" rows="15"></textarea>
<div class="grid"><button onclick="saveToday()">Save</button></div> <button onclick="saveToday()">Save</button>
</main> </main>
<footer> <footer>
<p><a href="/">home </a> | <a href="/days">previous days</a> | <a href="/api/readme">readme.txt</a></p> <p><a href="/">home </a> | <a href="/days">previous days</a> | <a href="/api/readme">readme.txt</a></p>
</footer> </footer>
<script defer>
updateDate()
beginDateUpdater()
loadToday()
</script>
</body> </body>
<script defer>
updateDate()
beginDateUpdater()
loadToday()
</script>
</html> </html>

View file

@ -27,7 +27,7 @@ textarea, input {
box-shadow: none; box-shadow: none;
border: 0.0625em solid #454545; border: 0.0625em solid #454545;
margin-bottom: 1em; margin-bottom: 1em;
font-size: 18px font-size: 18px;
} }
input { input {