Spaces:
Running
Running
Dash board link is not working , fix it
Browse files- index.html +11 -19
index.html
CHANGED
|
@@ -1475,20 +1475,18 @@
|
|
| 1475 |
<span class="logo-text">SEO Command Center</span>
|
| 1476 |
</a>
|
| 1477 |
</div>
|
| 1478 |
-
|
| 1479 |
<div class="nav-section">
|
| 1480 |
<div class="nav-title">Projects</div>
|
| 1481 |
-
<a href="
|
| 1482 |
<span class="nav-icon">π</span>
|
| 1483 |
<span class="nav-text">Dashboard</span>
|
| 1484 |
</a>
|
| 1485 |
-
<a href="
|
| 1486 |
<span class="nav-icon">π
</span>
|
| 1487 |
<span class="nav-text">Content Calendar</span>
|
| 1488 |
</a>
|
| 1489 |
</div>
|
| 1490 |
-
|
| 1491 |
-
<div class="nav-section">
|
| 1492 |
<div class="nav-title">Organization</div>
|
| 1493 |
<a href="#" class="nav-item" data-phase="team">
|
| 1494 |
<span class="nav-icon">π₯</span>
|
|
@@ -2871,7 +2869,6 @@
|
|
| 2871 |
// Navigation for other sections
|
| 2872 |
const navItems = document.querySelectorAll('.nav-item[data-phase]');
|
| 2873 |
const phaseContents = document.querySelectorAll('.phase-content');
|
| 2874 |
-
|
| 2875 |
function showPhase(phaseId) {
|
| 2876 |
// Hide all phase contents
|
| 2877 |
phaseContents.forEach(content => {
|
|
@@ -2889,21 +2886,16 @@
|
|
| 2889 |
item.classList.remove('active');
|
| 2890 |
});
|
| 2891 |
|
| 2892 |
-
|
|
|
|
| 2893 |
if (navItem) navItem.classList.add('active');
|
|
|
|
|
|
|
|
|
|
| 2894 |
}
|
| 2895 |
-
|
| 2896 |
-
|
| 2897 |
-
|
| 2898 |
-
item.addEventListener('click', (e) => {
|
| 2899 |
-
e.preventDefault();
|
| 2900 |
-
const phaseId = item.getAttribute('data-phase');
|
| 2901 |
-
if (phaseId !== 'overview' && phaseId !== 'project-detail' && phaseId !== 'project-setup') {
|
| 2902 |
-
showPhase(phaseId);
|
| 2903 |
-
}
|
| 2904 |
-
});
|
| 2905 |
-
});
|
| 2906 |
-
});
|
| 2907 |
</script>
|
| 2908 |
</body>
|
| 2909 |
</html>
|
|
|
|
| 1475 |
<span class="logo-text">SEO Command Center</span>
|
| 1476 |
</a>
|
| 1477 |
</div>
|
|
|
|
| 1478 |
<div class="nav-section">
|
| 1479 |
<div class="nav-title">Projects</div>
|
| 1480 |
+
<a href="javascript:void(0)" class="nav-item active" onclick="showPhase('overview')">
|
| 1481 |
<span class="nav-icon">π</span>
|
| 1482 |
<span class="nav-text">Dashboard</span>
|
| 1483 |
</a>
|
| 1484 |
+
<a href="javascript:void(0)" class="nav-item" onclick="showPhase('content-calendar')">
|
| 1485 |
<span class="nav-icon">π
</span>
|
| 1486 |
<span class="nav-text">Content Calendar</span>
|
| 1487 |
</a>
|
| 1488 |
</div>
|
| 1489 |
+
<div class="nav-section">
|
|
|
|
| 1490 |
<div class="nav-title">Organization</div>
|
| 1491 |
<a href="#" class="nav-item" data-phase="team">
|
| 1492 |
<span class="nav-icon">π₯</span>
|
|
|
|
| 2869 |
// Navigation for other sections
|
| 2870 |
const navItems = document.querySelectorAll('.nav-item[data-phase]');
|
| 2871 |
const phaseContents = document.querySelectorAll('.phase-content');
|
|
|
|
| 2872 |
function showPhase(phaseId) {
|
| 2873 |
// Hide all phase contents
|
| 2874 |
phaseContents.forEach(content => {
|
|
|
|
| 2886 |
item.classList.remove('active');
|
| 2887 |
});
|
| 2888 |
|
| 2889 |
+
// Find and activate the clicked nav item
|
| 2890 |
+
const navItem = document.querySelector(`.nav-item[onclick="showPhase('${phaseId}')"]`);
|
| 2891 |
if (navItem) navItem.classList.add('active');
|
| 2892 |
+
|
| 2893 |
+
// Scroll to top of the content
|
| 2894 |
+
window.scrollTo({ top: 0, behavior: 'smooth' });
|
| 2895 |
}
|
| 2896 |
+
// Initialize with overview phase active
|
| 2897 |
+
showPhase('overview');
|
| 2898 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2899 |
</script>
|
| 2900 |
</body>
|
| 2901 |
</html>
|