Add basic previous days page
This commit is contained in:
parent
1bd41cad43
commit
958b69dc08
6 changed files with 62 additions and 8 deletions
32
pages/days.html
Normal file
32
pages/days.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="/public/main.css">
|
||||
<script src="/public/date.js"></script>
|
||||
<script src="/public/requests.js"></script>
|
||||
|
||||
<title>Hibiscus.txt</title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>🌺 Hibiscus.txt</h1>
|
||||
<p id="status">Today is <span id="today-date">a place</span></p>
|
||||
</header>
|
||||
<main>
|
||||
<h2>Previous days</h2>
|
||||
<ul id="days"></ul>
|
||||
</main>
|
||||
<footer>
|
||||
<p><a href="/">home </a> | <a href="/days">previous days</a> | <a href="/api/readme">readme.txt</a></p>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
<script defer>
|
||||
updateDate()
|
||||
beginDateUpdater()
|
||||
|
||||
loadPrevious()
|
||||
</script>
|
||||
</html>
|
|
@ -16,13 +16,12 @@
|
|||
</header>
|
||||
<main>
|
||||
<h2 style="margin-bottom:0;"><label for="day">Your day so far:</label></h2>
|
||||
<textarea id="day" name="Day entry" cols="40" rows="10" style="max-width: 640px; width: 100%"></textarea>
|
||||
<textarea id="day" name="Day entry" cols="40" rows="15" style="max-width: 640px; width: 100%"></textarea>
|
||||
<div class="grid"><button onclick="saveToday()">Save</button></div>
|
||||
|
||||
<h2><label for="log">Log</label></h2>
|
||||
<input type="text" id="log" name="log" style="max-width: 640px; width: 100%"/>
|
||||
<div class="grid"><button onclick="saveLog()">Send</button></div>
|
||||
</main>
|
||||
<footer>
|
||||
<p><a href="/">home </a> | <a href="/days">previous days</a> | <a href="/api/readme">readme.txt</a></p>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
<script defer>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue