REST IN PEACE SKYCADE
This commit is contained in:
parent
2356042975
commit
a817f8e755
|
@ -16,21 +16,8 @@
|
|||
<audio id="ogg_player_1_obj" width="200" height="35" src="https://vignette.wikia.nocookie.net/undertale/images/a/a2/Mus_st_him.ogg/revision/latest?cb=20160108094830" autoplay="" controls=""></audio>
|
||||
</div>
|
||||
<script>
|
||||
// https://www.sitepoint.com/delay-sleep-pause-wait/
|
||||
function sleep(milliseconds) {
|
||||
var start = new Date().getTime();
|
||||
for (var i = 0; i < 1e7; i++) {
|
||||
if ((new Date().getTime() - start) > milliseconds){
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log('here u go');
|
||||
console.log(new Date());
|
||||
sleep(5000);
|
||||
console.log(new Date());
|
||||
console.log('there');
|
||||
document.getElementById('ogg_player_1_obj').autoplay = 'true';
|
||||
// https://www.w3schools.com/jsref/met_win_settimeout.asp
|
||||
setTimeout(function(){ document.getElementById('ogg_player_1_obj').autoplay = 'true'; }, 5000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue