Skip to content

Commit

Permalink
Create script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bubu07codes authored Nov 1, 2024
1 parent 8427556 commit 7797f85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function showTab(tabId) {
const tabs = document.querySelectorAll('.tab-content');
tabs.forEach(tab => tab.style.display = 'none');
document.getElementById(tabId).style.display = 'block';
}

0 comments on commit 7797f85

Please sign in to comment.