diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-24 16:50:45 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-24 16:50:45 +0200 |
| commit | 29e244c48222278c2f255ff2adf45e3af7c9f895 (patch) | |
| tree | afa11818de1d8115eee1777f7bfc70757f218ac7 /internal/web/templates/index.html | |
| parent | 102bf0c522c94d36f8363c38711621fe5ad18555 (diff) | |
| download | lectio-29e244c48222278c2f255ff2adf45e3af7c9f895.tar.gz lectio-29e244c48222278c2f255ff2adf45e3af7c9f895.zip | |
export: internal/export (Markdown/Text/ReadingsPDF via pure-Go go-pdf/fpdf + embedded DejaVu Sans, covers pl/la/gr); cli --md/--pdf/--out; web /export + download links; v0.22.0
Diffstat (limited to 'internal/web/templates/index.html')
| -rw-r--r-- | internal/web/templates/index.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/web/templates/index.html b/internal/web/templates/index.html index d3416e9..cd30208 100644 --- a/internal/web/templates/index.html +++ b/internal/web/templates/index.html @@ -78,6 +78,14 @@ <label class="mono-toggle"><input type="checkbox" {{if .Mono}}checked{{end}} onchange="document.body.classList.toggle('mono', this.checked)"> {{.L.Mono}}</label> + {{/* Download the current readings; the URL is built from the live control + values at click time so it always matches what's on screen. */}} + <span class="export">{{.L.Export}}: + <a href="#" onclick="location='/export?fmt=txt&'+new URLSearchParams(new FormData(document.getElementById('controls'))).toString();return false;">txt</a> + <a href="#" onclick="location='/export?fmt=md&'+new URLSearchParams(new FormData(document.getElementById('controls'))).toString();return false;">md</a> + <a href="#" onclick="location='/export?fmt=pdf&'+new URLSearchParams(new FormData(document.getElementById('controls'))).toString();return false;">pdf</a> + </span> + <div id="pane">{{.Reading}}</div> </div> |
