Difference between revisions of "Widget:Audio"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<audio preload="metadata" id='pronounce'><source src="https://smc.spypartyfans.com/resources/assets/pronunciation/{ | <audio preload="metadata" id='pronounce'><source src="https://smc.spypartyfans.com/resources/assets/pronunciation/<!--{$player|escape:'html'}-->.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:58, 11 February 2022
<audio preload="metadata" id='pronounce'><source src="https://smc.spypartyfans.com/resources/assets/pronunciation/.mp3" ></audio> <button onclick='pronounce.paused ? pronounce.play() : pronounce.pause()'>Listen</button> <script> var pronounce = document.getElementById('pronounce') </script>