Skip to content

Commit

Permalink
favicon and source link
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkolesidis committed Feb 19, 2023
1 parent 8b5951d commit 9c436be
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
Binary file added favicon.ico
Binary file not shown.
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
<meta name="description" content="" />
<meta name="keywords" content="" />
<title>fart</title>
<link rel="icon" href="#" type="image/png" sizes="16x16" />
<link rel="icon" href="./favicon.ico" type="image/png" sizes="16x16" />
<link rel="stylesheet" href="styles/style.css" />
<script src="scripts/main.js" defer></script>
</head>
<body>
<div id="container">
<img src="./assets/fart.png" id="fart" alt="fart" />
<img src="./assets/butt.png" id="butt" alt="butt" />
<img src="./assets/images/fart.png" id="fart" alt="fart" />
<img src="./assets/images/butt.png" id="butt" alt="butt" />
</div>
<a href="https://github.com/michaelkolesidis/fart" id="source">source</a>
</body>
</html>
6 changes: 5 additions & 1 deletion scripts/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
// Copyright (c) 2023 Michael Kolesidis (michael.kolesidis@gmail.com)
// Licensed under the GNU Affero General Public License v3.0.
// https://www.gnu.org/licenses/gpl-3.0.html

const butt = document.getElementById("butt");
const fart = document.getElementById("fart");

butt.addEventListener("click", () => {
const fartSound = new Audio("./assets/fart.mp3");
const fartSound = new Audio("./assets/sounds/fart.mp3");
fartSound.play();
setTimeout(() => {
fart.style.opacity = 1;
Expand Down
13 changes: 13 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,16 @@ img {
#fart {
opacity: 0;
}

a {
text-decoration: none;
color: black;
position: absolute;
bottom: 0;
left: 0;
margin: 5px;
}

a:hover {
color: white;
}

1 comment on commit 9c436be

@vercel
Copy link

@vercel vercel bot commented on 9c436be Feb 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fart – ./

fart-michaelkolesidis.vercel.app
f-art.vercel.app
fart-git-main-michaelkolesidis.vercel.app

Please sign in to comment.