Skip to content

Commit 8b25252

Browse files
volume control update
Now there is a global volume control in settings, and a per user volume control in the chat panel
1 parent 070f435 commit 8b25252

4 files changed

Lines changed: 478 additions & 943 deletions

File tree

src/index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ <h3>Channels</h3>
163163
</div>
164164
<div class="user-list-sidebar">
165165
<h3>Users Online</h3>
166-
<ul id="userList" class="card"></ul>
166+
<ul id="userList" class="card"></ul> <!-- Individual sliders go in here via JS -->
167167
</div>
168168
</div>
169169
</div>
@@ -290,6 +290,12 @@ <h2>Settings</h2>
290290
</div>
291291
</div>
292292

293+
<div class="settings-option">
294+
<label for="settingsGlobalVolumeSlider" style="white-space: nowrap;">Global Audio Volume:</label>
295+
<input type="range" id="settingsGlobalVolumeSlider" min="0" max="1" step="0.01" value="1" style="flex-grow: 1; margin-bottom:0;">
296+
<span id="globalVolumeValue" style="min-width: 40px; text-align: right;">100%</span>
297+
</div>
298+
293299
<div class="settings-actions">
294300
<button id="settingsSaveBtn" class="btn">Save Settings</button>
295301
</div>
@@ -308,4 +314,4 @@ <h2>Settings</h2>
308314
<script async src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
309315
<script type="module" src="main.js"></script>
310316
</body>
311-
</html>
317+
</html>

0 commit comments

Comments
 (0)