added multi sound-channel

This commit is contained in:
2026-02-16 21:46:32 +01:00
parent 434abad282
commit bb71f893e5
5 changed files with 102 additions and 18 deletions
+12 -4
View File
@@ -118,13 +118,17 @@
{% for sound in config.sounds %}
<div class="d-flex gap-2">
<button class="btn btn-outline-primary flex-grow-1 play-sound-btn"
data-sound-id="{{ sound.id }}">
data-sound-id="{{ sound.id }}"
data-channel="{{ sound.channel | default('') }}"
data-loop="{{ 1 if sound.loop else 0 }}">
{{ sound.name }}
{% if sound.description %}
<small class="d-block text-muted">{{ sound.description }}</small>
{% endif %}
</button>
<button class="btn btn-outline-danger stop-sound-btn" title="Aktuellen Sound stoppen">
<button class="btn btn-outline-danger stop-sound-btn"
data-channel="{{ sound.channel | default('') }}"
title="Aktuellen Sound stoppen">
<i class="bi bi-stop-fill"></i>
</button>
</div>
@@ -139,13 +143,17 @@
{% for sound in global_sounds %}
<div class="d-flex gap-2">
<button class="btn btn-outline-secondary flex-grow-1 play-sound-btn"
data-sound-id="{{ sound.id }}">
data-sound-id="{{ sound.id }}"
data-channel="{{ sound.channel | default('') }}"
data-loop="{{ 1 if sound.loop else 0 }}">
{{ sound.name }}
{% if sound.description %}
<small class="d-block text-muted">{{ sound.description }}</small>
{% endif %}
</button>
<button class="btn btn-outline-danger stop-sound-btn" title="Aktuellen Sound stoppen">
<button class="btn btn-outline-danger stop-sound-btn"
data-channel="{{ sound.channel | default('') }}"
title="Aktuellen Sound stoppen">
<i class="bi bi-stop-fill"></i>
</button>
</div>