-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Wiesendorf
committed
Dec 11, 2023
1 parent
6361272
commit 3d97086
Showing
4 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>ASTRALSCHATTEN Album</title> | ||
<style> | ||
body { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100vh; | ||
margin: 0; | ||
background-color: #000; /* Set the background color to dark */ | ||
color: #fff; /* Set text color to white */ | ||
} | ||
#album-container { | ||
max-width: 90%; | ||
max-height: 90vh; | ||
margin: 5%; | ||
overflow: hidden; | ||
position: relative; | ||
border-radius: 10px; /* Optional: Add border-radius for rounded corners */ | ||
} | ||
#album-cover img { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: contain; /* Ensure the entire image is always shown */ | ||
} | ||
#play-pause-container { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} | ||
#play-pause { | ||
font-size: 24px; | ||
cursor: pointer; | ||
background-color: rgba(255, 255, 255, 0.5); /* Translucent white */ | ||
border-radius: 50%; /* Make it circular */ | ||
padding: 10px; /* Add padding for spacing */ | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="album-container"> | ||
<!-- Replace 'img/cover.jpg' with the actual relative path to your album cover image --> | ||
<img src="img/cover.jpg" alt="ASTRALSCHATTEN Album Cover"> | ||
<div id="play-pause-container"> | ||
<div id="play-pause">▶</div> | ||
</div> | ||
</div> | ||
|
||
<!-- Replace 'media/gute_musik_final.mp3' with the actual relative path to your MP3 file --> | ||
<audio id="audio" src="media/gute_musik_final.mp3" autoplay></audio> | ||
|
||
<script> | ||
document.getElementById('play-pause').addEventListener('click', function() { | ||
var audio = document.getElementById('audio'); | ||
if (audio.paused) { | ||
audio.play(); | ||
this.innerHTML = '▐▐'; // Pause icon | ||
} else { | ||
audio.pause(); | ||
this.innerHTML = '▶'; // Play icon | ||
} | ||
}) | ||
</script> | ||
</body> | ||
</html> |
Binary file not shown.