first webbie!!

This commit is contained in:
esefxdz committed 2025-07-11 14:12:52 +03:00
commit 6c07be0bd7
32 files changed
+252

No files matched your search

+17
View File
@@ -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';
});
});
});