A hot tip for those early birds: start your mornings right with a hot cup of Joe in our shiny ceramic mug.
Volume: 325 ml
Coloured throughout (inside and outside)
Please wash by hand
Material: 100% ceramic (glossy)
Size
One Size
Dimension A (cm)
3.74
Dimension B (cm)
10.24
Recently Played
${song.title}
${song.artist}
Played at ${formatTime(song.time_played)}
`;
songsContainer.appendChild(songElement);
});
}
// Function to format the time to display only hours and minutes
function formatTime(time) {
const date = new Date(time);
const hours = date.getHours().toString().padStart(2, '0');
const minutes = date.getMinutes().toString().padStart(2, '0');
return `${hours}:${minutes}`;
}
// Fetch latest songs when the page loads
fetchLatestSongs();
// Refresh songs every 30 seconds
setInterval(fetchLatestSongs, 30000);