mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
optional progressbar tint
This commit is contained in:
parent
e15c8fd146
commit
66adb470ad
|
@ -237,6 +237,10 @@ var mpl = (function () {
|
||||||
'<a href="#" class="tgl btn" tt="load the next folder and continue">📂 next-folder</a>' +
|
'<a href="#" class="tgl btn" tt="load the next folder and continue">📂 next-folder</a>' +
|
||||||
'</div></div>' +
|
'</div></div>' +
|
||||||
|
|
||||||
|
'<div><h3>tint</h3><div>' +
|
||||||
|
'<input type="text" id="pb_tint" size="3" value="0" tt="background level (0-100) on the seekbar$Nto make buffering less distracting" />' +
|
||||||
|
'</div></div>' +
|
||||||
|
|
||||||
'<div><h3>audio equalizer</h3><div id="audio_eq"></div></div>');
|
'<div><h3>audio equalizer</h3><div id="audio_eq"></div></div>');
|
||||||
|
|
||||||
var r = {
|
var r = {
|
||||||
|
@ -290,6 +294,19 @@ var mpl = (function () {
|
||||||
draw_pb_mode();
|
draw_pb_mode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function set_tint() {
|
||||||
|
var tint = icfg_get('pb_tint', 0);
|
||||||
|
if (!tint)
|
||||||
|
ebi('barbuf').style.removeProperty('background');
|
||||||
|
else
|
||||||
|
ebi('barbuf').style.background = 'rgba(126,163,75,' + (tint / 100.0) + ')';
|
||||||
|
}
|
||||||
|
ebi('pb_tint').oninput = function (e) {
|
||||||
|
swrite('pb_tint', this.value);
|
||||||
|
set_tint();
|
||||||
|
};
|
||||||
|
set_tint();
|
||||||
|
|
||||||
r.pp = function () {
|
r.pp = function () {
|
||||||
if (!r.os_ctl)
|
if (!r.os_ctl)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue