Initial commit

This commit is contained in:
Zoey 2023-04-23 11:01:25 -07:00
commit ec279553f8
No known key found for this signature in database
GPG key ID: 0E87B6A5795E040B
5 changed files with 36 additions and 0 deletions

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# pipefall
falling pipe

3
index.css Normal file
View file

@ -0,0 +1,3 @@
body {
font-family: sans-serif;
}

17
index.html Normal file
View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="/index.css">
<title>pipefall</title>
<script src="/index.js" defer></script>
</head>
<body>
<h1>pipefall</h1>
<audio id="pipefall" src="/pipefall.mp3">pipefall</audio>
<p><button id="play-now">play now</button></p>
</body>
</html>

13
index.js Normal file
View file

@ -0,0 +1,13 @@
(function () {
"use strict";
const pipefall = document.getElementById("pipefall");
const now = document.getElementById("play-now");
const play = () => {
console.log("pipefall!");
pipefall.play();
};
now.addEventListener("click", play);
})();

BIN
pipefall.mp3 Normal file

Binary file not shown.