Widget:AudioPlayer: Difference between revisions

From The Midnight Wiki
No edit summary
(Replaced content with "<noinclude>__NOTOC__ == Sample result == </noinclude> <includeonly> <html><audio controls> <source src="<!--{$ogg|escape:'urlpathinfo'}-->" type="audio/ogg"> <source src="<!--{$mp3|escape:'urlpathinfo'}-->" type="audio/mpeg"> </audio> <html> </includeonly>")
Tags: Replaced Manual revert
 
(26 intermediate revisions by 2 users not shown)
Line 2: Line 2:


== Sample result ==
== Sample result ==
{{#widget:{{PAGENAME}}
 
|mp3=mp3
|ogg=2601871540
}}
</noinclude>
</noinclude>


<includeonly>
<includeonly>
 
<html><audio controls>
<script>
    script.onload = function () {
GreenAudioPlayer.init({
selector: '.audio-wrapper',
stopOthersOnPlay: true
});
GreenAudioPlayer.init({
selector: '.audio-wrapper-2',
stopOthersOnPlay: true
});
};
    </script>
 
<div class="audio-wrapper">
<audio class="mediacenter">
<source src="<!--{$ogg|escape:'urlpathinfo'}-->" type="audio/ogg">
<source src="<!--{$ogg|escape:'urlpathinfo'}-->" type="audio/ogg">
<source src="<!--{$mp3|escape:'urlpathinfo'}-->" type="audio/mpeg">
<source src="<!--{$mp3|escape:'urlpathinfo'}-->" type="audio/mpeg">
</audio>
</audio>
</div>
<html>
</includeonly>
</includeonly>

Latest revision as of 21:15, 12 June 2023


Sample result