3 Commits

Author SHA1 Message Date
cottongin
373fe8b835 cleanup project, branding 2026-01-18 18:27:35 -05:00
cottongin
2a839de999 add favicon 2026-01-18 07:01:56 -05:00
cottongin
bbf4d88f61 fix initial page load for track duration 2026-01-17 21:13:58 -05:00
11 changed files with 41 additions and 4 deletions

BIN
assets/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

BIN
assets/favicon-96x96.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
assets/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

3
assets/favicon.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 206 KiB

21
assets/site.webmanifest Normal file
View File

@@ -0,0 +1,21 @@
{
"name": "ECHO REALITY",
"short_name": "ECHO REALITY",
"icons": [
{
"src": "/assets/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/assets/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

View File

@@ -3,8 +3,14 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>16-Bit Cassette Player</title>
<link rel="stylesheet" href="styles.css">
<title>ECHO REALITY</title>
<link rel="icon" type="image/png" href="/assets/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/assets/favicon.svg" />
<link rel="shortcut icon" href="/assets/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png" />
<meta name="apple-mobile-web-app-title" content="ECHO REALITY" />
<link rel="manifest" href="/assets/site.webmanifest" />
<link rel="stylesheet" href="assets/styles.css">
</head>
<body>
<div class="player">
@@ -156,6 +162,6 @@
<audio id="audio" preload="metadata"></audio>
<script src="app.js"></script>
<script src="src/app.js"></script>
</body>
</html>

View File

@@ -1,4 +1,4 @@
const APP_VERSION = '0.1.0-beta';
const APP_VERSION = '0.1.2-beta';
const playlist = [
{ url: 'https://feed.falsefinish.club/Echo%20Reality/PINK%20FLIGHT/MP3%20BOUNCE/01.%20PINK%20FLIGHT%20ATTENDANT.mp3', name: 'TRACK 1 - PINK FLIGHT ATTENDANT' },
{ url: 'https://feed.falsefinish.club/Echo%20Reality/PINK%20FLIGHT/MP3%20BOUNCE/02.%20NOW.mp3', name: 'TRACK 2 - NOW' },
@@ -1146,6 +1146,13 @@ audio.addEventListener('timeupdate', () => {
updateTapeSizes();
});
// Update time display when metadata loads (fixes cold start 0:00 / 0:00 issue)
audio.addEventListener('loadedmetadata', () => {
const current = formatTime(audio.currentTime);
const duration = formatTime(audio.duration);
timeDisplay.textContent = `${current} / ${duration}`;
});
// Format time helper
function formatTime(seconds) {
if (isNaN(seconds)) return '00:00';