mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 09:22:31 -06:00
more iframe-resize-concealing tricks
This commit is contained in:
parent
8b62aa7cc7
commit
04966164ce
|
@ -800,9 +800,11 @@ html.y #path a:hover {
|
||||||
}
|
}
|
||||||
.logue>iframe {
|
.logue>iframe {
|
||||||
background: var(--bgg);
|
background: var(--bgg);
|
||||||
border-radius: .3em;
|
border: 1px solid var(--bgg);
|
||||||
|
border-width: 0 .3em 0 .3em;
|
||||||
|
border-radius: .5em;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
border: none;
|
margin: 0 -.3em;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5730,18 +5730,25 @@ var wfp_debounce = (function () {
|
||||||
var r = { 'n': 0, 't': 0 };
|
var r = { 'n': 0, 't': 0 };
|
||||||
|
|
||||||
r.hide = function () {
|
r.hide = function () {
|
||||||
|
if (!sb_lg && !sb_md)
|
||||||
|
return;
|
||||||
|
|
||||||
if (++r.n <= 1) {
|
if (++r.n <= 1) {
|
||||||
r.n = 1;
|
r.n = 1;
|
||||||
clearTimeout(r.t);
|
clearTimeout(r.t);
|
||||||
r.t = setTimeout(r.reset, 500);
|
r.t = setTimeout(r.reset, 300);
|
||||||
ebi('wfp').style.visibility = 'hidden';
|
ebi('wfp').style.opacity = 0.1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
r.show = function () {
|
r.show = function () {
|
||||||
|
if (!sb_lg && !sb_md)
|
||||||
|
return;
|
||||||
|
|
||||||
if (--r.n <= 0) {
|
if (--r.n <= 0) {
|
||||||
r.n = 0;
|
r.n = 0;
|
||||||
clearTimeout(r.t);
|
clearTimeout(r.t);
|
||||||
ebi('wfp').style.visibility = 'unset';
|
ebi('wfp').style.opacity = 'unset';
|
||||||
|
ebi('wrap').style.opacity = 'unset';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
r.reset = function () {
|
r.reset = function () {
|
||||||
|
@ -6731,13 +6738,17 @@ function sandbox(tgt, rules, cls, html) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
clmod(tgt, 'sb', 1);
|
clmod(tgt, 'sb', 1);
|
||||||
if (!cls)
|
|
||||||
wfp_debounce.hide();
|
|
||||||
|
|
||||||
var tid = tgt.getAttribute('id'),
|
var tid = tgt.getAttribute('id'),
|
||||||
hash = location.hash,
|
hash = location.hash,
|
||||||
want = '';
|
want = '';
|
||||||
|
|
||||||
|
if (!cls) {
|
||||||
|
wfp_debounce.hide();
|
||||||
|
if (tid == 'pro')
|
||||||
|
ebi('wrap').style.opacity = 0.2;
|
||||||
|
}
|
||||||
|
|
||||||
if (hash.startsWith('#md-'))
|
if (hash.startsWith('#md-'))
|
||||||
want = hash.slice(1);
|
want = hash.slice(1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue