Widget:A2Audiosettings: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
J* (Diskussion | Beiträge) (AZ: Die Seite wurde neu angelegt.) |
J* (Diskussion | Beiträge) |
||
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | <div> | + | <includeonly><div> |
Audioeinstellungen: | Audioeinstellungen: | ||
<input style="vertical-align: bottom;" id="a2audio_music" type="checkbox" name="music" checked="checked"> | <input style="vertical-align: bottom;" id="a2audio_music" type="checkbox" name="music" checked="checked"> | ||
Zeile 10: | Zeile 10: | ||
<label for="a2audio_noise">Geräusche</label> | <label for="a2audio_noise">Geräusche</label> | ||
</div> | </div> | ||
+ | |||
+ | <audio id="a2audio_channel_music" loop="loop" preload="auto"></audio> | ||
+ | <audio id="a2audio_channel_background" loop="loop" preload="auto"></audio> | ||
+ | <audio id="a2audio_channel_noise" preload="auto"></audio> | ||
+ | <script type="text/javascript"> | ||
+ | function assoc_a2_player(name) { | ||
+ | $("#a2audio_"+name).click(function () { | ||
+ | $("#a2audio_channel_"+name)[0].muted = ! $("#a2audio_"+name)[0].checked; | ||
+ | }); | ||
+ | } | ||
+ | |||
+ | assoc_a2_player("music"); | ||
+ | assoc_a2_player("background"); | ||
+ | assoc_a2_player("noise"); | ||
+ | |||
+ | </script> | ||
+ | </includeonly> |