Widget:A2Audiosettings: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
J* (Diskussion | Beiträge) K |
J* (Diskussion | Beiträge) |
||
Zeile 14: | Zeile 14: | ||
<audio name="a2audio_channel_background" src="" loop="loop" preload="auto"></audio> | <audio name="a2audio_channel_background" src="" loop="loop" preload="auto"></audio> | ||
<audio name="a2audio_channel_noise" src="" preload="auto"></audio> | <audio name="a2audio_channel_noise" src="" preload="auto"></audio> | ||
+ | <script type="text/javascript"> | ||
+ | function assoc_a2_player(name) { | ||
+ | $("#a2audio_"+name).click(function () { | ||
+ | $("#a2audio_player"+name)[0].muted = ! $("#a2audio_"+name)[0].checked; | ||
+ | }); | ||
+ | } | ||
+ | |||
+ | assoc_a2_player("music"); | ||
+ | assoc_a2_player("background"); | ||
+ | assoc_a2_player("noise"); | ||
+ | |||
+ | </script> | ||
</includeonly> | </includeonly> |