first webbie!!
This commit is contained in:
commit
6c07be0bd7
32 files changed
+252
No files matched your search
+17
@@ -0,0 +1,17 @@
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
const tabs = document.querySelectorAll('.tab-content');
|
||||
tabs.forEach(tab => tab.style.display = 'none');
|
||||
const aboutTab = document.getElementById('about');
|
||||
if (aboutTab) aboutTab.style.display = 'block';
|
||||
|
||||
const buttons = document.querySelectorAll('#top-line button');
|
||||
buttons.forEach(button => {
|
||||
button.addEventListener('click', () => {
|
||||
const targetId = button.id.replace('-btn', '');
|
||||
tabs.forEach(tab => tab.style.display = 'none');
|
||||
const targetTab = document.getElementById(targetId);
|
||||
if (targetTab) targetTab.style.display = 'block';
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user