allow showing stat in kiosk mode

This commit is contained in:
2023-10-01 20:50:23 +02:00
parent 5315fe8dfc
commit e67b345789
3 changed files with 20 additions and 5 deletions

View File

@ -38,12 +38,14 @@
</div>
<script>
{% if personal %}
const data = [
{%- for p in personal %}
{ date: '{{p.date}}', km: {{p.km}} },
{%- endfor %}
]
sessionStorage.setItem('userStats', JSON.stringify(data));
{% endif %}
</script>
<script src="/public/logbook.js"></script>