Skip to content

Commit 78c977f

Browse files
committed
Add information link to index.html and implement background music play functionality
- Added a new "Information" link to the navigation section. - Updated the audio element with an ID for easier access. - Implemented a script to automatically play background music on the first click.
1 parent fb61c7f commit 78c977f

3 files changed

Lines changed: 41 additions & 1 deletion

File tree

buttons/info.gif

5.71 KB
Loading

index.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
<a href="https://zane.org/links.html"><img class="nav-item" src="https://zane.org/buttons/globe05.gif"><br>Links</a>
2121
<br><br>
2222
<a href="https://zaney.atabook.org/"><img class="nav-item" src="https://zane.org/buttons/gb.gif"><br>Guestbook</a>
23+
<br><br>
24+
<a href="https://zane.org/info.html"><img class="nav-item" src="https://zane.org/buttons/info.gif"><br>Information</a>
2325
</div>
2426
</header>
2527
<div class="content">
@@ -36,7 +38,7 @@ <h1 class="content">Life</h1>
3638
<h1>Background Music</h1>
3739
<img class="song-cover" src="swsd-logo.jpg" alt="song cover">
3840
<p><a href="https://tangermusic.bandcamp.com/track/somewhere-someday">somewhere, someday</a> - <a href="https://tangermusic.bandcamp.com">Tanger</a></p>
39-
<audio controls autoplay loop>
41+
<audio id="bg-music" controls autoplay loop>
4042
<source src="music.mp3" type="audio/mpeg">
4143
Your browser does not support the audio element.
4244
</audio>
@@ -66,5 +68,16 @@ <h1>Background Music</h1>
6668
<img class="blinkies" src="https://zane.org/buttons/happiness.gif">
6769
<p class="mini-evil-text"><i>I AM NOT FRIENDLY TO MOBILE USERS HAHAHAHAHAHA</i></p>
6870
</footer>
71+
<script>
72+
const music = document.getElementById("bg-music");
73+
74+
function tryPlayMusic() {
75+
if (music && music.paused) {
76+
music.play().catch(() => {});
77+
}
78+
}
79+
80+
window.addEventListener("click", tryPlayMusic, { once: true });
81+
</script>
6982
</body>
7083
</html>

info.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Zane :P</title>
7+
<link rel="stylesheet" href="style.css">
8+
<link rel="icon" href="favicon.png">
9+
</head>
10+
<body>
11+
<header>
12+
<a href="index.html"><img class="logo" src="logo.gif" alt="logo"></a>
13+
<br><br>
14+
<img class="eeto" src="https://anlucas.neocities.org/under-con.gif" alt="Under Construction">
15+
<a href="https://zaney.atabook.org/"><img class="eeto" src="https://zane.org/buttons/guestbook.gif"></a>
16+
<div class="nav-container">
17+
<a href="https://zane.org"><img class="nav-item" src="https://zane.org/buttons/cd.gif"><br>Home</a>
18+
<br><br>
19+
<a href="https://zane.org/links.html"><img class="nav-item" src="https://zane.org/buttons/globe05.gif"><br>Links</a>
20+
<br><br>
21+
<a href="https://zaney.atabook.org/"><img class="nav-item" src="https://zane.org/buttons/gb.gif"><br>Guestbook</a>
22+
</div>
23+
</header>
24+
<h1>What elements are AI?</h1>
25+
<p>The only AI written code as of Feb 20th 2026 on this site is the code for music playback on the homepage. It uses javascript to play the music when you click anywhere (if the music isn't already playing).</p>
26+
</body >
27+
</html>

0 commit comments

Comments
 (0)