Difference between revisions of "Widget:Audio"

From SMC Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<audio preload="metadata" id='pronounce'><source src="https://smc.spypartyfans.com/resources/assets/pronunciation/{{PAGENAME}}.mp3" ></audio>
<audio preload="metadata" id='pronounce'><source src="https://smc.spypartyfans.com/resources/assets/pronunciation/{{player}}.mp3" ></audio>
<button onclick='pronounce.paused ? pronounce.play() : pronounce.pause()'>Listen</button>
<button onclick='pronounce.paused ? pronounce.play() : pronounce.pause()'>Listen</button>
<script>
<script>
var pronounce = document.getElementById('pronounce')
var pronounce = document.getElementById('pronounce')
</script>
</script>

Revision as of 17:57, 11 February 2022

<audio preload="metadata" id='pronounce'><source src="https://smc.spypartyfans.com/resources/assets/pronunciation/Template:Player.mp3" ></audio> <button onclick='pronounce.paused ? pronounce.play() : pronounce.pause()'>Listen</button> <script> var pronounce = document.getElementById('pronounce') </script>