Widget:A2Audiosettings: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
J* (Diskussion | Beiträge) K |
J* (Diskussion | Beiträge) |
||
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 11: | Zeile 11: | ||
</div> | </div> | ||
− | <audio | + | <audio id="a2audio_channel_music" loop="loop" preload="auto"></audio> |
− | <audio | + | <audio id="a2audio_channel_background" loop="loop" preload="auto"></audio> |
− | <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> | </includeonly> |