diff options
Diffstat (limited to 'internal/web/templates')
| -rw-r--r-- | internal/web/templates/index.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/web/templates/index.html b/internal/web/templates/index.html index 03c0078..8c88779 100644 --- a/internal/web/templates/index.html +++ b/internal/web/templates/index.html @@ -21,7 +21,7 @@ <link id="theme" rel="stylesheet" href="/theme.css?name={{.Theme}}"> <script src="/static/htmx.min.js"></script> </head> -<body> +<body{{if .Mono}} class="mono"{{end}}> <div class="page"> <form id="controls" class="controls" hx-get="/readings" hx-target="#pane" hx-trigger="change"> @@ -69,6 +69,9 @@ </select> </label> + <label class="mono-toggle"><input type="checkbox" {{if .Mono}}checked{{end}} + onchange="document.body.classList.toggle('mono', this.checked)"> mono</label> + <form id="lookup-form" class="controls" hx-get="/lookup" hx-target="#lookup-results" hx-include="#controls"> <input type="text" name="ref" placeholder="np. J 20:1" value="{{.Ref}}"> <button type="submit">szukaj</button> |
