This commit is contained in:
Juli 2024-07-13 13:57:10 +03:00
parent b0f1531a52
commit faf5ea64b4
3 changed files with 11 additions and 1 deletions

View file

@ -11,7 +11,7 @@ function calculate_elapsed_years($start_date)
}
$date = calculate_elapsed_years("2009-08-29");
?>
<script src="/static/script/index.js"></script>
<img id=adolf src="/static/assets/icons/twitter_better.svg">
<link rel="stylesheet" href="/static/style/index.css">
<div class="main">

Binary file not shown.

10
static/script/index.js Normal file
View file

@ -0,0 +1,10 @@
function boop() {
var audio = new Audio('/static/assets/audio/Boop.mp3');
audio.play();
}
document.addEventListener('DOMContentLoaded', function() {
var image = document.getElementById("myImg")
image.addEventListener("click", boop)
}, false);