mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 21:00:42 +02:00
MozReview-Commit-ID: 7NlzmcZAlrd --HG-- extra : rebase_source : fe7d43b0275483e9e082504b88af8f106cadbc19
25 lines
No EOL
438 B
HTML
25 lines
No EOL
438 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<body>
|
|
<script type="application/javascript;version=1.7">
|
|
var audio = new Audio();
|
|
audio.src = "audio.ogg";
|
|
audio.loop = true;
|
|
|
|
function runCommands()
|
|
{
|
|
switch(location.hash) {
|
|
case '#play':
|
|
audio.play();
|
|
break;
|
|
case '#pause':
|
|
audio.pause();
|
|
break;
|
|
default :
|
|
alert("Undefined command!");
|
|
}
|
|
}
|
|
window.addEventListener('hashchange', runCommands);
|
|
</script>
|
|
</body>
|
|
</html> |