Widget:AudioPlayer: Difference between revisions

From The Midnight Wiki
(Created page with "<noinclude>__NOTOC__ == Sample result == {{#widget:{{PAGENAME}} |mp3=mp3 |ogg=2601871540 }} </noinclude> <includeonly> <div class="audio-wrapper"> <audio class="mediacenter"> <source src="<!--{$ogg|escape:'urlpathinfo'}-->" type="audio/ogg"> <source src="<!--{$mp3|escape:'urlpathinfo'}-->" type="audio/mpeg"> </audio> </div> </includeonly>")
 
No edit summary
Line 9: Line 9:


<includeonly>
<includeonly>
<script>
    script.onload = function () {
GreenAudioPlayer.init({
selector: '.audio-wrapper',
stopOthersOnPlay: true
});
GreenAudioPlayer.init({
selector: '.audio-wrapper-2',
stopOthersOnPlay: true
});
};
    </script>
<div class="audio-wrapper">
<div class="audio-wrapper">
<audio class="mediacenter">
<audio class="mediacenter">

Revision as of 21:15, 22 March 2022


Sample result