added multi sound-channel
This commit is contained in:
+12
-4
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user