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