mirror of
https://github.com/Lapikud/Viido.git
synced 2026-03-23 13:14:19 +00:00
Hide audio tunnel commands by default
This commit is contained in:
@@ -152,8 +152,11 @@
|
|||||||
<button name="projektor" value="volumedown">Vol -</button>
|
<button name="projektor" value="volumedown">Vol -</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 class="title">Linux audio tunnel</h2>
|
<h2 class="title"></h2>
|
||||||
<code>
|
<div class="button-grid">
|
||||||
|
<button id="audio_tunnel_toggle">Linux audio tunnel</button>
|
||||||
|
</div>
|
||||||
|
<code id="audio_tunnel">
|
||||||
pacmd load-module module-tunnel-sink-new server=viido
|
pacmd load-module module-tunnel-sink-new server=viido
|
||||||
PULSE_SERVER=viido pavucontrol &
|
PULSE_SERVER=viido pavucontrol &
|
||||||
pavucontrol &
|
pavucontrol &
|
||||||
@@ -161,6 +164,12 @@
|
|||||||
|
|
||||||
<div id="loading"></div>
|
<div id="loading"></div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
const audio_tunnel = document.getElementById('audio_tunnel');
|
||||||
|
audio_tunnel.hidden = true;
|
||||||
|
document.getElementById('audio_tunnel_toggle').addEventListener('click', function () {
|
||||||
|
audio_tunnel.hidden = !audio_tunnel.hidden;
|
||||||
|
});
|
||||||
|
|
||||||
const modeButtons = document.querySelectorAll('button[name="projektor"]');
|
const modeButtons = document.querySelectorAll('button[name="projektor"]');
|
||||||
for (let i = 0; i < modeButtons.length; i++) {
|
for (let i = 0; i < modeButtons.length; i++) {
|
||||||
modeButtons[i].addEventListener('click', function (event) {
|
modeButtons[i].addEventListener('click', function (event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user