boop
This commit is contained in:
parent
b0f1531a52
commit
faf5ea64b4
3 changed files with 11 additions and 1 deletions
|
@ -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">
|
||||
|
|
BIN
static/assets/audio/Boop.mp3
Normal file
BIN
static/assets/audio/Boop.mp3
Normal file
Binary file not shown.
10
static/script/index.js
Normal file
10
static/script/index.js
Normal 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);
|
Loading…
Reference in a new issue