%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 54.36.91.62 / Your IP : 216.73.217.162 Web Server : Apache System : Linux webm002.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : wellingtpa ( 97533) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wellingtpa/www/wp-content/themes/kata/includes/kirki/kirki-packages/settings/src/ |
Upload File : |
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"
);
});
}