Widget:A2Audiosettings: Unterschied zwischen den Versionen

aus Kamelopedia, der wüsten Enzyklopädie
Zur Navigation springen Zur Suche springen
K
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>

Version vom 8. November 2013, 15:05 Uhr