diff --git a/dock.html b/dock.html
index e5ee9b98..355517a5 100644
--- a/dock.html
+++ b/dock.html
@@ -98,6 +98,25 @@
top: 7px;
position: relative;
}
+
+ .volume-container {
+ position: relative;
+ display: inline-block;
+ }
+
+ .volume-slider {
+ position: absolute;
+ bottom: 40px; /* Adjust as needed to position above the button */
+ left: 50%;
+ transform: translateX(-50%);
+ display: none;
+ z-index: 10;
+ cursor: pointer;
+ }
+
+ .volume-container:hover .volume-slider {
+ display: block;
+ }
@keyframes float {
0% {
@@ -1803,8 +1822,11 @@
-
-
+
+
+
+
+
@@ -3007,7 +3029,9 @@
if (urlParams.has("volume")) {
volume = urlParams.get("volume") || 1;
volume = parseFloat(volume);
+ document.getElementById('volumeSlider').value = volume*100;
}
+
var voiceLatency = 4; // 0 slowest, but best quality; 4 is fastest, but worst quality
if (urlParams.has("latency")) {
@@ -3104,7 +3128,7 @@
} else {
speechInput.voice = voice;
}
-
+ console.log("vooumlume:"+volume);
speechInput.volume = volume;
speechInput.rate = rate;
speechInput.pitch = pitch;
@@ -5183,6 +5207,10 @@ Messages
\
getById("pinned").appendChild(element);
applyHiddenState(element);
}
+
+ document.getElementById('volumeSlider').addEventListener('input', function() {
+ volume = this.value/100;
+ });
function deleteMessage(element) {
syncDataP2P({ deleteMessage: element.dataset.mid }, false, true);