window.onload = function() { play("error"); } function play(audioId) { let audioElement = document.getElementById(audioId); setTimeout(function() { audioElement.play(); }, 1000 ) } function close_button(href) { play("click"); window.location.href = href; } function details_button() { play("click"); // TODO: this button does nothing for now :) }