NXInspired/assets/js/main.js
mctaylors 9bc7f2e633
Refactor, implement two buttons pt.1
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
2024-05-02 17:12:39 +05:00

18 lines
No EOL
343 B
JavaScript

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