mirror of
https://github.com/9001/copyparty.git
synced 2026-06-21 13:42:29 -06:00
audio mute switch
This commit is contained in:
parent
63e094e436
commit
89c9623275
|
|
@ -2791,6 +2791,18 @@ var vbar = (function () {
|
||||||
ebi('pvolbg').ontouchstart = can.ontouchstart = mousedown;
|
ebi('pvolbg').ontouchstart = can.ontouchstart = mousedown;
|
||||||
ebi('pvolbg').ontouchmove = can.ontouchmove = mousemove;
|
ebi('pvolbg').ontouchmove = can.ontouchmove = mousemove;
|
||||||
}
|
}
|
||||||
|
var mute = ebi('pvolbg').children[0];
|
||||||
|
mute.onclick = function (e) {
|
||||||
|
ev(e);
|
||||||
|
if(mp.vol > 0)
|
||||||
|
mp.setvol(0);
|
||||||
|
else
|
||||||
|
mp.setvol(1);
|
||||||
|
r.draw();
|
||||||
|
}
|
||||||
|
mute.onmousedown = function (e) {
|
||||||
|
ev(e);
|
||||||
|
}
|
||||||
return r;
|
return r;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue