Skip to content

Commit 0f6bf15

Browse files
committed
update-MCU-R0.3.7 WebUI-R2.0.5-vol fix
1 parent e8259bd commit 0f6bf15

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
96 Bytes
Binary file not shown.

JR-Beru.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ void handleRoot() {
507507
"<label>Volume</label>"
508508
"<input type='range' class='volume-slider' id='volumeControl' min='0' max='30' "
509509
"value='" + String(globalVolume) + "' oninput='setVolume(this.value)'>"
510-
"<span id='volumeValue'>" + String(globalVolume) + "</span>"
510+
"<span id='volumeValue' style='min-width: 25px;'>" + String(globalVolume) + "</span>"
511511
"</div>"
512512

513513
// Platform Announcement Button
@@ -551,6 +551,7 @@ void handleRoot() {
551551

552552
"function setVolume(value) {"
553553
" fetch('/setVolume?value=' + value, { method: 'GET' });"
554+
" document.getElementById('volumeValue').textContent = value;"
554555
"}"
555556

556557
"function reinitDFPlayer() {"

0 commit comments

Comments
 (0)