mirror of
https://github.com/zyllian/pipefall.git
synced 2025-01-18 03:32:55 -08:00
add pipe image
This commit is contained in:
parent
23b42d1006
commit
d246b4b0ac
4 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
||||||
body {
|
body {
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pipe {
|
||||||
|
max-width: 50%;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center-contents {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
|
@ -9,8 +9,11 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>pipefall</h1>
|
|
||||||
<audio id="pipefall" src="/pipefall.mp3">pipefall</audio>
|
<audio id="pipefall" src="/pipefall.mp3">pipefall</audio>
|
||||||
|
<h1>pipefall</h1>
|
||||||
|
<p class="center-contents">
|
||||||
|
<img class="pipe" src="/pipe.jpg" alt="metal pipe from metal pipe fallout sound effect videos">
|
||||||
|
</p>
|
||||||
<p><button id="play-now">play now</button></p>
|
<p><button id="play-now">play now</button></p>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
4
index.js
4
index.js
|
@ -10,4 +10,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
now.addEventListener("click", play);
|
now.addEventListener("click", play);
|
||||||
|
|
||||||
|
for (let pipe of document.querySelectorAll(".pipe")) {
|
||||||
|
pipe.addEventListener("click", play);
|
||||||
|
}
|
||||||
})();
|
})();
|
||||||
|
|
BIN
pipe.jpg
Normal file
BIN
pipe.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 101 KiB |
Loading…
Add table
Reference in a new issue