Commit 37222dbb authored by antoine-boiteau's avatar antoine-boiteau
Browse files

changed scripts to be more adaptable and understandable

parent 77084418
function openTab(tabTitle, tabId) {
function openTab(tabTitle, tabId, tabContentClass) {
let i, tabContent, tabLinks;
tabContent = document.getElementsByClassName("tab-content");
tabContent = document.getElementsByClassName(tabContentClass);
for (i = 0; i < tabContent.length; i++) {
tabContent[i].style.display = "none";
}
......@@ -12,4 +12,3 @@ function openTab(tabTitle, tabId) {
document.getElementById(tabTitle).className += " active";
}
document.getElementById("tab1").click();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment