lyunm1206
commited on
Commit
·
11e42b8
1
Parent(s):
37d7d44
dadaf
Browse files- index.html +1 -1
- script.js +2 -2
index.html
CHANGED
|
@@ -46,7 +46,7 @@
|
|
| 46 |
/* Style for the tab buttons */
|
| 47 |
.tabs {
|
| 48 |
text-align: center;
|
| 49 |
-
margin-top:
|
| 50 |
}
|
| 51 |
|
| 52 |
.tab-button {
|
|
|
|
| 46 |
/* Style for the tab buttons */
|
| 47 |
.tabs {
|
| 48 |
text-align: center;
|
| 49 |
+
margin-top: 30px;
|
| 50 |
}
|
| 51 |
|
| 52 |
.tab-button {
|
script.js
CHANGED
|
@@ -105,10 +105,10 @@ function openTab(tabId) {
|
|
| 105 |
for (i = 0; i < tabcontent.length; i++) {
|
| 106 |
tabcontent[i].style.display = "none";
|
| 107 |
}
|
| 108 |
-
tabButtons.forEach(button => button.classList.remove('active'));
|
| 109 |
-
document.querySelector(`[data-tab='${tabId}']`).classList.add('active');
|
| 110 |
var selectedTabContent = document.getElementById(tabId);
|
| 111 |
if (selectedTabContent) {
|
| 112 |
selectedTabContent.style.display = "block";
|
| 113 |
}
|
|
|
|
|
|
|
| 114 |
}
|
|
|
|
| 105 |
for (i = 0; i < tabcontent.length; i++) {
|
| 106 |
tabcontent[i].style.display = "none";
|
| 107 |
}
|
|
|
|
|
|
|
| 108 |
var selectedTabContent = document.getElementById(tabId);
|
| 109 |
if (selectedTabContent) {
|
| 110 |
selectedTabContent.style.display = "block";
|
| 111 |
}
|
| 112 |
+
tabButtons.forEach(button => button.classList.remove('active'));
|
| 113 |
+
document.querySelector(`[data-tab='${tabId}']`).classList.add('active');
|
| 114 |
}
|