Loopfunktion
This commit is contained in:
parent
ec5b29dff3
commit
a6b47e15f8
3 changed files with 20 additions and 4 deletions
|
|
@ -55,7 +55,7 @@
|
|||
<h2>2026</h2>
|
||||
<a href="/suche?liste={{liste}}">Du willst ein weiteres Lied in der Playlist?</a>
|
||||
<p>Die Playlist {{liste}} ist insgesamt {{ gesamtLaenge | zeit }} lang und enthält {{ karten|length }} Lieder</p>
|
||||
<button onclick="abspielen()">Abspielen</button>
|
||||
<p><button id="play" onclick="abspielen()">Abspielen</button><button id="loop" onclick="looptrue()">Loop</button></p>
|
||||
<div id = "flex-container">
|
||||
{% for karte in karten %}
|
||||
{% set karte_loop = loop %}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<p id="{{karte_loop.index0}}" class="sing"></p>
|
||||
<img src="{{ karte.img }}"/>
|
||||
{% if karte.ytid %}
|
||||
<audio src="/static/{{karte.datei}}"></audio>
|
||||
<audio controls src="/static/{{karte.datei}}"></audio>
|
||||
{% endif %}
|
||||
<h2>{{ karte.titel}}</h2>
|
||||
<p><b>Übersetzter Titel:</b>{{ karte.uetitel}}</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue