Difference between revisions of "Widget:Audio"
Jump to navigation
Jump to search
Tag: Manual revert |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<audio preload="metadata" | <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> | |||
<script> | |||
var pronounce = document.getElementById('pronounce') | |||
</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>