$22 GRAYBYTE WORDPRESS FILE MANAGER $89

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/contact.malloca.com/wp-content/plugins/admin-menu-editor-pro/js/

HOME
Current File : /home/bqrcodec/contact.malloca.com/wp-content/plugins/admin-menu-editor-pro/js//tab-utils.js
jQuery(function ($) {
	var menuEditorHeading = $('#ws_ame_editor_heading').first();
	var pageWrapper = menuEditorHeading.closest('.wrap');
	var tabList = pageWrapper.find('.nav-tab-wrapper').first();

	//On AME pages, move settings tabs after the heading. This is necessary to make them appear on the right side,
	//and WordPress breaks that by moving notices like "Settings saved" after the first H1 (see common.js).
	var menuEditorTabs = tabList.add(tabList.next('.clear'));
	if ((menuEditorHeading.length > 0) && (menuEditorTabs.length > 0)) {
		menuEditorTabs.insertAfter(menuEditorHeading);
	}

	//Switch tab styles when there are too many tabs and they don't fit on one row.
	var $firstTab = null,
		$lastTab = null,
		knownTabWrapThreshold = -1;

	function updateTabStyles() {
		if (($firstTab === null) || ($lastTab === null)) {
			var $tabItems = tabList.children('.nav-tab');
			$firstTab = $tabItems.first();
			$lastTab = $tabItems.last();
		}

		//To detect if any tabs are wrapped to the next row, check if the top of the last tab
		//is below the bottom of the first tab.
		var firstPosition = $firstTab.position();
		var lastPosition = $lastTab.position();
		var windowWidth = $(window).width();
		//Sanity check.
		if (
			!firstPosition || !lastPosition || !windowWidth
			|| (typeof firstPosition['top'] === 'undefined')
			|| (typeof lastPosition['top'] === 'undefined')
		) {
			return;
		}
		var firstTabBottom = firstPosition.top + $firstTab.outerHeight();
		var areTabsWrapped = (lastPosition.top >= firstTabBottom);

		//Tab positions may change when we apply different styles, which could lead to the tab bar
		//rapidly cycling between one and two two rows when the browser width is just right.
		//To prevent that, remember what the width was when we detected wrapping, and always apply
		//the alternative styles if the width is lower than that.
		var wouldWrapByDefault = (windowWidth <= knownTabWrapThreshold);

		var tooManyTabs = areTabsWrapped || wouldWrapByDefault;
		if (tooManyTabs && (windowWidth > knownTabWrapThreshold)) {
			knownTabWrapThreshold = windowWidth;
		}

		pageWrapper.toggleClass('ws-ame-too-many-tabs', tooManyTabs);
	}

	updateTabStyles();

	$(window).on('resize', wsAmeLodash.debounce(
		function () {
			updateTabStyles();
		},
		300
	));
});


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0755
actor-manager.js
33.044 KB
17 Mar 2024 12.16 AM
bqrcodec / bqrcodec
0644
actor-manager.js.map
24.329 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
actor-manager.ts
32.393 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
admin-helpers.js
2.781 KB
17 Mar 2024 12.15 AM
bqrcodec / bqrcodec
0644
common.d.ts
2.141 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
jquery-json.d.ts
0.106 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
jquery.biscuit.d.ts
0.444 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
jquery.biscuit.js
5.365 KB
17 Mar 2024 12.15 AM
bqrcodec / bqrcodec
0644
jquery.color.d.ts
5.062 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
jquery.d.ts
146.392 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
jquery.form.d.ts
0.785 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
jquery.form.js
40.929 KB
17 Mar 2024 12.16 AM
bqrcodec / bqrcodec
0644
jquery.json.js
5.133 KB
17 Mar 2024 12.16 AM
bqrcodec / bqrcodec
0644
jquery.qtip.js
100.341 KB
17 Mar 2024 12.16 AM
bqrcodec / bqrcodec
0644
jquery.qtip.min.js
43.226 KB
17 Mar 2024 12.15 AM
bqrcodec / bqrcodec
0644
jquery.sort.js
1.925 KB
17 Mar 2024 12.16 AM
bqrcodec / bqrcodec
0644
jqueryui.d.ts
77.895 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
knockout-sortable.js
22.488 KB
17 Mar 2024 12.16 AM
bqrcodec / bqrcodec
0644
knockout.d.ts
42.646 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
knockout.js
66.649 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
lazyload.d.ts
10.201 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
lazyload.min.js
8.097 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
lodash-3.10.d.ts
408.181 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
lodash.js
409.555 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
lodash.min.js
51.412 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
menu-editor.d.ts
0.641 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
menu-editor.js
177.473 KB
17 Mar 2024 12.15 AM
bqrcodec / bqrcodec
0644
menu-highlight-fix.js
11.121 KB
17 Mar 2024 12.16 AM
bqrcodec / bqrcodec
0644
mini-func.js
4.945 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
mini-func.js.map
4.1 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
mini-func.ts
5.023 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
tab-utils.js
2.248 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF