Prepare ByteGeist Toolbox v1.0.0 release
This commit is contained in:
+10
-5
@@ -13,10 +13,15 @@ toolTabs.forEach((tab) => {
|
||||
|
||||
// Mark only the selected tab as active.
|
||||
toolTabs.forEach((currentTab) => {
|
||||
currentTab.classList.toggle(
|
||||
"active",
|
||||
currentTab === tab
|
||||
);
|
||||
const isSelected = currentTab === tab;
|
||||
|
||||
currentTab.classList.toggle("active", isSelected);
|
||||
|
||||
if (isSelected) {
|
||||
currentTab.setAttribute("aria-current", "page");
|
||||
} else {
|
||||
currentTab.removeAttribute("aria-current");
|
||||
}
|
||||
});
|
||||
|
||||
// Show only the selected tool panel.
|
||||
@@ -658,4 +663,4 @@ headersForm.addEventListener("submit", async (event) => {
|
||||
headersButton.disabled = false;
|
||||
headersButton.textContent = "Check Headers";
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user