mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
24 lines
585 B
HTML
24 lines
585 B
HTML
|
<!DOCTYPE html>
|
||
|
<html class="reftest-wait">
|
||
|
<script>
|
||
|
var audioElement = document.createElement("audio");
|
||
|
audioElement.autoplay = true;
|
||
|
audioElement.src = "sound.ogg";
|
||
|
audioElement.onplaying =
|
||
|
function() {
|
||
|
audioElement.onseeked =
|
||
|
function() {
|
||
|
setTimeout(
|
||
|
function() {
|
||
|
document.documentElement.removeAttribute("class");
|
||
|
}, 100);
|
||
|
};
|
||
|
audioElement.currentTime = 0;
|
||
|
};
|
||
|
|
||
|
var context = new window.AudioContext();
|
||
|
var source = context.createMediaElementSource(audioElement);
|
||
|
source.connect(context.destination);
|
||
|
</script>
|
||
|
</html>
|