403Webshell
Server IP : 192.158.238.246  /  Your IP : 216.73.216.207
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/7779/task/7779/cwd/themes/personalias/functions/kirki/kirki-packages/settings/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/task/7779/cwd/themes/personalias/functions/kirki/kirki-packages/settings/src/tabs.ts
import jQuery from "jquery";

export default function setupTabsNavigation() {
	jQuery(".heatbox-tab-nav-item").on("click", function () {
		jQuery(".heatbox-tab-nav-item").removeClass("active");
		jQuery(this).addClass("active");

		const link = this.querySelector("a");
		if (!link) return;

		if (link.href.indexOf("#") === -1) return;

		const hashValue = link.href.substring(link.href.indexOf("#") + 1);

		jQuery(".heatbox-panel-wrapper .heatbox-admin-panel").css(
			"display",
			"none"
		);

		jQuery(".heatbox-panel-wrapper .kirki-" + hashValue + "-panel").css(
			"display",
			"block"
		);
	});

	window.addEventListener("load", function () {
		let hashValue = window.location.hash.substring(1);
		let currentActiveTabMenu: HTMLElement | null = null;

		if (!hashValue) {
			currentActiveTabMenu = document.querySelector(
				".heatbox-tab-nav-item.active"
			);

			if (currentActiveTabMenu && currentActiveTabMenu.dataset.tab) {
				hashValue = currentActiveTabMenu.dataset.tab;
			}

			hashValue = hashValue ? hashValue : "settings";
		}

		jQuery(".heatbox-tab-nav-item").removeClass("active");
		jQuery(".heatbox-tab-nav-item.kirki-" + hashValue + "-panel").addClass(
			"active"
		);

		jQuery(".heatbox-panel-wrapper .heatbox-admin-panel").css(
			"display",
			"none"
		);

		jQuery(".heatbox-panel-wrapper .kirki-" + hashValue + "-panel").css(
			"display",
			"block"
		);
	});
}

Youez - 2016 - github.com/yon3zu
LinuXploit