mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-30 07:49:18 +02:00
add reload button
This commit is contained in:
@@ -74,7 +74,7 @@
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.refresh-btn {
|
.btn {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding: 4px 10px;
|
padding: 4px 10px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.refresh-btn:hover { background: #333; }
|
.btn:hover { background: #333; }
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -132,7 +132,8 @@
|
|||||||
<div class="seg-row" id="partPicker"></div>
|
<div class="seg-row" id="partPicker"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="playlist-display">playlist: <span id="playlistVal">friday/day</span></div>
|
<div class="playlist-display">playlist: <span id="playlistVal">friday/day</span></div>
|
||||||
<button class="refresh-btn" onclick="refreshPlaylist()">Refresh</button>
|
<button class="btn" onclick="refreshPlaylist()">Refresh</button>
|
||||||
|
<button class="btn" onclick="reloadPlaylist()">Reload on Player</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@@ -251,6 +252,10 @@
|
|||||||
function refreshPlaylist() {
|
function refreshPlaylist() {
|
||||||
ws.send(JSON.stringify({ action: "fsdb_list", playlist: getPlaylistName() }));
|
ws.send(JSON.stringify({ action: "fsdb_list", playlist: getPlaylistName() }));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reloadPlaylist() {
|
||||||
|
ws.send(JSON.stringify({ action: "fsdb_add", name: "reload" }));
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user