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/<!--{$target|escape:'html'}-->.mp3" ></audio>
<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>