Added some test pages
This commit is contained in:
200
pages/Jukebox.html
Normal file
200
pages/Jukebox.html
Normal file
@ -0,0 +1,200 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Author: W175B/TechRunner
|
||||
Created: October 6th, 2025
|
||||
-->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Jukebox</title>
|
||||
<style>
|
||||
body{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
background-color: rgb(52, 52, 146);
|
||||
}
|
||||
.jukeBox{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
border-style: solid;
|
||||
padding: 5px;
|
||||
width: 300px;
|
||||
border-radius: 15px;
|
||||
background-color: black;
|
||||
border-color: cyan;
|
||||
}
|
||||
|
||||
@media (min-width: 800px){
|
||||
.jukeBox{
|
||||
width: 500px;
|
||||
}
|
||||
}
|
||||
.selected{
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
||||
.songSelector{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
height:100%;
|
||||
width:100%;
|
||||
}
|
||||
.songList{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
width: 100%;
|
||||
height: 197px;
|
||||
overflow: scroll;
|
||||
background-color: lightblue;
|
||||
border-top-left-radius: 15px;
|
||||
|
||||
}
|
||||
.songChanger{
|
||||
height:100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
.jukeboxButton{
|
||||
border: none;
|
||||
padding-top:114%;
|
||||
padding-bottom: 102%;
|
||||
background-color: rgb(182, 155, 231);
|
||||
}
|
||||
#prevSong{
|
||||
border-top-right-radius: 15px;
|
||||
}
|
||||
.jukeboxButton:hover{
|
||||
background-color: lightcoral;
|
||||
}
|
||||
.jukeboxButton:active{
|
||||
background-color: red;
|
||||
}
|
||||
.song{
|
||||
margin: 5px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
height: 30px;
|
||||
|
||||
}
|
||||
audio{
|
||||
width:100%;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
|
||||
.playing{
|
||||
color: white;
|
||||
display: flex;
|
||||
justify-content: left;
|
||||
flex-direction: row;
|
||||
height: 30px;
|
||||
align-items: center;
|
||||
}
|
||||
#currentlyPlaying{
|
||||
color: pink;
|
||||
}
|
||||
audio{
|
||||
background-color: black;
|
||||
border-bottom-left-radius: 15px;
|
||||
border-bottom-right-radius: 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Welcome to my Jukebox!</h1>
|
||||
<h2></h2>
|
||||
<div class="jukeBox">
|
||||
<div class="songSelector">
|
||||
<div class="songList">
|
||||
<ol id="songList">
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
<div class="songChanger">
|
||||
<input onclick="jukebox.prev()" type="button" value="prev" class="jukeboxButton" id="prevSong">
|
||||
<input onclick="jukebox.next()"type="button" value="next" class="jukeboxButton" id="nextSong">
|
||||
</div>
|
||||
</div>
|
||||
<div class="playing">
|
||||
<h5 class="playing">Currently Playing:</h5>
|
||||
<p id="currentlyPlaying"></p>
|
||||
</div>
|
||||
<audio controls src="" id="audioPlayer"></audio>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
let jukebox = {
|
||||
current: document.getElementById("currentlyPlaying"),
|
||||
audioPlayer: document.getElementById("audioPlayer"),
|
||||
prevBtn: document.getElementById("prevSong"),
|
||||
nextBtn: document.getElementById("nextSong"),
|
||||
selected: 0,
|
||||
songlist: [
|
||||
{
|
||||
title: "Begging to Bleed",
|
||||
path: "/media/music/01 - Begging To Bleed.mp3",
|
||||
},
|
||||
{
|
||||
title: "Better off dead",
|
||||
path: "/media/music/02 - Better Off Dead.mp3"
|
||||
},
|
||||
{
|
||||
title: "Eye for an eye",
|
||||
path: "/media/music/03 - Eye For An Eye.mp3"
|
||||
},
|
||||
{
|
||||
title: "Pink Bubblegum",
|
||||
path: "/media/music/Pink_Bubblegum.mp3"
|
||||
}
|
||||
],
|
||||
next: (self = this) => {
|
||||
if (jukebox.selected >= jukebox.songlist.length-1){
|
||||
jukebox.selected = 0;
|
||||
}else{
|
||||
jukebox.selected += 1;
|
||||
}
|
||||
jukebox.current.textContent = jukebox.songlist[jukebox.selected].title;
|
||||
jukebox.audioPlayer.src = jukebox.songlist[jukebox.selected].path;
|
||||
if (jukebox.audioPlayer.allowedToPlay){
|
||||
jukebox.audioPlayer.play();
|
||||
}
|
||||
},
|
||||
prev: (self) => {
|
||||
if (jukebox.selected-1 < 0){
|
||||
jukebox.selected = jukebox.songlist.length - 1;
|
||||
} else {
|
||||
jukebox.selected -= 1;
|
||||
}
|
||||
jukebox.current.textContent = jukebox.songlist[jukebox.selected].title;
|
||||
jukebox.audioPlayer.src = jukebox.songlist[jukebox.selected].path;
|
||||
if (jukebox.audioPlayer.allowedToPlay){
|
||||
jukebox.audioPlayer.play();
|
||||
}
|
||||
|
||||
},
|
||||
init: () => {
|
||||
let songList = document.getElementById("songList");
|
||||
for(let i = 0; i < jukebox.songlist.length; i++){
|
||||
songList.append(Object.assign(document.createElement("li"),{textContent: jukebox.songlist[i].title}));
|
||||
}
|
||||
jukebox.current.textContent = jukebox.songlist[0].title;
|
||||
jukebox.audioPlayer.src = jukebox.songlist[0].path;
|
||||
}
|
||||
}
|
||||
|
||||
jukebox.init();
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
0
pages/gallery.html
Normal file
0
pages/gallery.html
Normal file
12
pages/games.html
Normal file
12
pages/games.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Void's Games and Recomendations</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
66
pages/links.html
Normal file
66
pages/links.html
Normal file
@ -0,0 +1,66 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Void Links</title>
|
||||
<style>
|
||||
*{
|
||||
margin:0;
|
||||
padding:0;
|
||||
height:100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
img.sociaalLink {
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="mainView">
|
||||
<h1>My Social Links</h1>
|
||||
<ul>
|
||||
<li class="socialLink">
|
||||
<a href="https://bsky.app/profile/w175b.bsky.social">
|
||||
<img src="/media/socialicons/bsky.png" alt="Bluesky Logo">
|
||||
<h3>Bluesky</h3>
|
||||
</a>
|
||||
</li>
|
||||
<li class="socialLink">
|
||||
<a href="https://thangs.com/designer/TechRunner">
|
||||
<img src="" alt="">
|
||||
<h3>Thangs 3D Models</h3>
|
||||
</a>
|
||||
</li>
|
||||
<li class="socialLink">
|
||||
<a href="https://t.me/W175B">
|
||||
<img src="" alt="">
|
||||
<h3>Telegram</h3>
|
||||
</a>
|
||||
</li>
|
||||
<li class="socialLink">
|
||||
<a href="http://">
|
||||
<img src="" alt="">
|
||||
<h3></h3>
|
||||
</a>
|
||||
</li>
|
||||
<li class="socialLink">
|
||||
<a href="http://">
|
||||
<img src="" alt="">
|
||||
<h3></h3>
|
||||
</a>
|
||||
</li>
|
||||
<li class="socialLink">
|
||||
<a href="http://">
|
||||
<img src="" alt="">
|
||||
<h3></h3>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user