mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
persist videoplayer prefs
This commit is contained in:
parent
1f6f89c1fd
commit
e74ad5132a
|
@ -35,8 +35,8 @@ window.baguetteBox = (function () {
|
||||||
documentLastFocus = null,
|
documentLastFocus = null,
|
||||||
isFullscreen = false,
|
isFullscreen = false,
|
||||||
vmute = false,
|
vmute = false,
|
||||||
vloop = false,
|
vloop = sread('vmode') == 'L',
|
||||||
vnext = false,
|
vnext = sread('vmode') == 'C',
|
||||||
resume_mp = false;
|
resume_mp = false;
|
||||||
|
|
||||||
var onFSC = function (e) {
|
var onFSC = function (e) {
|
||||||
|
@ -320,6 +320,7 @@ window.baguetteBox = (function () {
|
||||||
btnVmode.setAttribute('aria-label', msg);
|
btnVmode.setAttribute('aria-label', msg);
|
||||||
btnVmode.setAttribute('tt', msg + tts);
|
btnVmode.setAttribute('tt', msg + tts);
|
||||||
btnVmode.textContent = lbl;
|
btnVmode.textContent = lbl;
|
||||||
|
swrite('vmode', lbl[0]);
|
||||||
|
|
||||||
v.loop = vloop
|
v.loop = vloop
|
||||||
if (vloop && v.paused)
|
if (vloop && v.paused)
|
||||||
|
|
|
@ -5298,7 +5298,7 @@ var settheme = (function () {
|
||||||
vbar.draw();
|
vbar.draw();
|
||||||
showfile.setstyle();
|
showfile.setstyle();
|
||||||
|
|
||||||
var html = [], itheme = ax.indexOf(theme.charAt(0)) * 2 + (light ? 1 : 0),
|
var html = [], itheme = ax.indexOf(theme[0]) * 2 + (light ? 1 : 0),
|
||||||
names = ['classic dark', 'classic light', 'pm-monokai', 'flat light', 'vice', 'hotdog stand'];
|
names = ['classic dark', 'classic light', 'pm-monokai', 'flat light', 'vice', 'hotdog stand'];
|
||||||
|
|
||||||
for (var a = 0; a < themes; a++)
|
for (var a = 0; a < themes; a++)
|
||||||
|
@ -5318,7 +5318,7 @@ var settheme = (function () {
|
||||||
var i = e;
|
var i = e;
|
||||||
try { ev(e); i = e.target.textContent; } catch (ex) { }
|
try { ev(e); i = e.target.textContent; } catch (ex) { }
|
||||||
light = i % 2 == 1;
|
light = i % 2 == 1;
|
||||||
var c = ax.charAt(Math.floor(i / 2)),
|
var c = ax[Math.floor(i / 2)],
|
||||||
l = light ? 'y' : 'z';
|
l = light ? 'y' : 'z';
|
||||||
theme = c + l + ' ' + c + ' ' + l;
|
theme = c + l + ' ' + c + ' ' + l;
|
||||||
swrite('theme', theme);
|
swrite('theme', theme);
|
||||||
|
|
|
@ -471,7 +471,7 @@ function linksplit(rp, id) {
|
||||||
q = '?' + q[1];
|
q = '?' + q[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rp && rp.charAt(0) == '/')
|
if (rp && rp[0] == '/')
|
||||||
rp = rp.slice(1);
|
rp = rp.slice(1);
|
||||||
|
|
||||||
while (rp) {
|
while (rp) {
|
||||||
|
|
Loading…
Reference in a new issue