Spaces:
Sleeping
Sleeping
Update static/test.js
Browse files- static/test.js +4 -4
static/test.js
CHANGED
@@ -1,9 +1,7 @@
|
|
1 |
// Function to show the selected section
|
2 |
function showSection(sectionId) {
|
3 |
// Hide all sections first
|
4 |
-
|
5 |
-
section.classList.add('hidden');
|
6 |
-
});
|
7 |
|
8 |
// Show the selected section
|
9 |
const sectionToShow = document.getElementById(sectionId);
|
@@ -15,7 +13,9 @@ function showSection(sectionId) {
|
|
15 |
|
16 |
document.addEventListener('DOMContentLoaded', function() {
|
17 |
|
18 |
-
|
|
|
|
|
19 |
// Add click event listeners to all cards
|
20 |
document.querySelectorAll('.card').forEach(card => {
|
21 |
card.addEventListener('click', function() {
|
|
|
1 |
// Function to show the selected section
|
2 |
function showSection(sectionId) {
|
3 |
// Hide all sections first
|
4 |
+
|
|
|
|
|
5 |
|
6 |
// Show the selected section
|
7 |
const sectionToShow = document.getElementById(sectionId);
|
|
|
13 |
|
14 |
document.addEventListener('DOMContentLoaded', function() {
|
15 |
|
16 |
+
document.querySelectorAll('.tool-section').forEach(section => {
|
17 |
+
section.classList.add('hidden');
|
18 |
+
});
|
19 |
// Add click event listeners to all cards
|
20 |
document.querySelectorAll('.card').forEach(card => {
|
21 |
card.addEventListener('click', function() {
|