Difference between revisions of "Widget:Audio"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<audio preload="metadata" id='pronounce'><source src=" | <audio preload="metadata" id='pronounce'><source src="/resources/assets/pronunciation/<!--{$target|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> |
Latest revision as of 05:05, 13 February 2022
<audio preload="metadata" id='pronounce'><source src="/resources/assets/pronunciation/.mp3" ></audio> <button onclick='pronounce.paused ? pronounce.play() : pronounce.pause()'>Listen</button> <script> var pronounce = document.getElementById('pronounce') </script>