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 {
|
||||
background: var(--bgg);
|
||||
border-radius: .3em;
|
||||
border: 1px solid var(--bgg);
|
||||
border-width: 0 .3em 0 .3em;
|
||||
border-radius: .5em;
|
||||
visibility: hidden;
|
||||
border: none;
|
||||
margin: 0 -.3em;
|
||||
width: 100%;
|
||||
height: 0;
|
||||
}
|
||||
|
|
|
@ -5730,18 +5730,25 @@ var wfp_debounce = (function () {
|
|||
var r = { 'n': 0, 't': 0 };
|
||||
|
||||
r.hide = function () {
|
||||
if (!sb_lg && !sb_md)
|
||||
return;
|
||||
|
||||
if (++r.n <= 1) {
|
||||
r.n = 1;
|
||||
clearTimeout(r.t);
|
||||
r.t = setTimeout(r.reset, 500);
|
||||
ebi('wfp').style.visibility = 'hidden';
|
||||
r.t = setTimeout(r.reset, 300);
|
||||
ebi('wfp').style.opacity = 0.1;
|
||||
}
|
||||
};
|
||||
r.show = function () {
|
||||
if (!sb_lg && !sb_md)
|
||||
return;
|
||||
|
||||
if (--r.n <= 0) {
|
||||
r.n = 0;
|
||||
clearTimeout(r.t);
|
||||
ebi('wfp').style.visibility = 'unset';
|
||||
ebi('wfp').style.opacity = 'unset';
|
||||
ebi('wrap').style.opacity = 'unset';
|
||||
}
|
||||
};
|
||||
r.reset = function () {
|
||||
|
@ -6731,13 +6738,17 @@ function sandbox(tgt, rules, cls, html) {
|
|||
return false;
|
||||
}
|
||||
clmod(tgt, 'sb', 1);
|
||||
if (!cls)
|
||||
wfp_debounce.hide();
|
||||
|
||||
var tid = tgt.getAttribute('id'),
|
||||
hash = location.hash,
|
||||
want = '';
|
||||
|
||||
if (!cls) {
|
||||
wfp_debounce.hide();
|
||||
if (tid == 'pro')
|
||||
ebi('wrap').style.opacity = 0.2;
|
||||
}
|
||||
|
||||
if (hash.startsWith('#md-'))
|
||||
want = hash.slice(1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue