Make status bar disappear without JS
This commit is contained in:
parent
5cbb20dcc4
commit
9bf5e936fe
3 changed files with 8 additions and 3 deletions
|
@ -1,16 +1,20 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
This file keeps track of changes in a human-readable fashion
|
This file keeps track of changes in a human-readable fashion
|
||||||
|
|
||||||
|
## v2.0.0 stuff
|
||||||
|
|
||||||
|
|
||||||
## Upcoming
|
## Upcoming
|
||||||
|
|
||||||
These changes are not yet released
|
These changes are not yet released
|
||||||
|
|
||||||
* Fully refactored the project internally
|
* Fully refactored the project internally to use several packages
|
||||||
* Log *directory* is now specified as opposed to *file*.
|
* Log *directory* is now specified as opposed to *file*.
|
||||||
Files in that directory are generated as `hibiscus_YYYY-MM-DD_HH:MM:SS.log`
|
Files in that directory are generated as `hibiscus_YYYY-MM-DD_HH:MM:SS.log`
|
||||||
* Adjusted default theme
|
* Adjusted default theme
|
||||||
* Error pages are now translated
|
* Error pages are now translated
|
||||||
* API: `/api/today` POST now behaves like other file uploads
|
* API: `/api/today` POST now behaves like other file uploads
|
||||||
|
* Disabling JS now makes the status bar disappear since it won't work
|
||||||
|
|
||||||
## v1.1.4
|
## v1.1.4
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,6 @@ function sanitize(title) {
|
||||||
|
|
||||||
// Open a new note
|
// Open a new note
|
||||||
function newNote(text_prompt) {
|
function newNote(text_prompt) {
|
||||||
name = sanitize(prompt(text_prompt + ':'))
|
let name = sanitize(prompt(text_prompt + ':'))
|
||||||
window.location.replace('/notes/' + name)
|
window.location.replace('/notes/' + name)
|
||||||
}
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
{{ define "header" }}
|
{{ define "header" }}
|
||||||
<header>
|
<header>
|
||||||
<h1>{{ config.Title }}</h1>
|
<h1>{{ config.Title }}</h1>
|
||||||
<p>{{ translate "time.date" }} <span id="today-date">a place</span> <span id="grace" hidden>({{ translate "time.grace" }})</span></p>
|
<p id="status" style="display: none;">{{ translate "time.date" }} <span id="today-date">a place</span> <span id="grace" hidden>({{ translate "time.grace" }})</span></p>
|
||||||
</header>
|
</header>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
||||||
</main>
|
</main>
|
||||||
{{- template "footer" . -}}
|
{{- template "footer" . -}}
|
||||||
<script defer>
|
<script defer>
|
||||||
|
document.getElementById("status").style.display = 'block';
|
||||||
const langName="{{ config.Language }}";
|
const langName="{{ config.Language }}";
|
||||||
const timeZone="{{ config.Timezone }}";
|
const timeZone="{{ config.Timezone }}";
|
||||||
beginTimeUpdater()
|
beginTimeUpdater()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue