This commit is contained in:
Eduard Prigoana 2024-12-30 20:34:13 +02:00
parent b62b809f7a
commit beac29a7d4
2 changed files with 16 additions and 2 deletions

View file

@ -68,9 +68,11 @@
.navbar {
display: flex;
flex-wrap: nowrap;
list-style: none;
padding: 10px;
margin: 0;
justify-content: flex-start;
}
.navbar li {
@ -151,6 +153,18 @@
#gear-icon {
display: none;
}
/* Responsive Navbar for small screens */
@media (max-width: 600px) {
.navbar {
flex-wrap: wrap; /* Enable wrapping */
justify-content: center; /* Center items */
}
.navbar li {
margin-bottom: 10px; /* Add spacing between items when wrapped */
}
}
</style>
</head>
<body>
@ -243,7 +257,7 @@
}
fetchLastPlayedSong();
setInterval(fetchLastPlayedSong, 3000);
setInterval(fetchLastPlayedSong, 100);
function openSettingsModal() {
document.getElementById('settings-modal').style.display = 'block';

View file

@ -90,7 +90,7 @@
<script>
const username = localStorage.getItem('lastfmUsername') || 'eduardprigoana';
const url = `https://lastfm-last-played.biancarosa.com.br/${username}/latest-song`;
const url = `https://lastplayed.prigoana.com/eduardprigoana/latest-song`;
const backgroundElement = document.getElementById('background');
const trackTitleElement = document.getElementById('track-title');
const trackArtistElement = document.getElementById('track-artist');