tghandbook/lib/index.ts

15 lines
433 B
TypeScript
Raw Normal View History

2020-06-17 09:43:21 +00:00
import TabManager from "./TabManager";
const tabListContainer = document.getElementById("tab-list");
const tabContentContainer = document.getElementById("tabs");
const manager = new TabManager(tabListContainer, tabContentContainer);
const defaultTabs = [
{ page: "Guide_to_chemistry", active: true },
{ page: "Guide_to_medicine", active: false },
];
defaultTabs.forEach((tab) => {
manager.openTab(tab.page, tab.active);
});