Skip to content

Commit 51da9de

Browse files
committed
finaledits
1 parent 844d959 commit 51da9de

4 files changed

Lines changed: 678 additions & 337 deletions

File tree

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Zero-Sum Project
2+
3+
## Sprint Boards
4+
- Sprint 1 Task Board: https://github.com/orgs/code4policy/projects/87/views/2
5+
- Sprint 2 Task Board: https://github.com/orgs/code4policy/projects/87/views/2
6+
7+
## User Stories
8+
- User Stories Board (incl. added stories): https://github.com/orgs/code4policy/projects/87/views/2
9+
10+
Includes original and newly identified user stories with sprint-level prioritization. All user stories were reviewed and estimated using planning poker in Slack, which helped us agree on priorities and break work into manageable sprint tasks.
11+
12+
## Sprint Planning
13+
Sprint 1: In person; 01/07/2026;
14+
Sprint 2: In person; 01/14/2026;
15+
16+
## Standups & Burndown
17+
- Regular standups conducted (in-person).
18+
- Timing from 3 pm to 3:30 pm daily before class (and in classroom), since 01/08/2026, including Saturdays;
19+
- https://github.com/orgs/code4policy/projects/87/views/7?visibleFields=%5B%22Title%22%2C%22Assignees%22%2C251732067%2C%22Status%22%2C%22Linked+pull+requests%22%2C%22Sub-issues+progress%22%2C250166533%2C250582399%5D
20+
21+
## Sprint Review
22+
- Sprint 1: Joint and mutual class exercise; 01/13/2026; professors and students have provided feedback in different capacities (wearing different hats);
23+
- Spring 2: Joint and mutual class exercise; 01/16/2026; professors and students have provided feedback as different users of the project stories;
24+
25+
## Sprint Retrospective
26+
- Sprint 1: 01/09/ 2026; 3PM; undertaken in person and a joint team’s submission of Sprint-1 Retrospective Form;
27+
- Sprint 2: 01/19/ 2026; 3PM; undertaken in Zoom and a joint team’s submission of Sprint 2 Retrospective Form;
28+
29+
---
30+
31+
# Product
32+
33+
## Final Project
34+
- Live GitHub Pages deployment:
35+
https://code4policy.com/Zero-Sum-Thinking-Project/
36+
37+
## Data / Backend
38+
Repository includes a dedicated /**data** (or /backend) folder with:
39+
- Raw source data
40+
- Data transformation steps (Python scripts / notebooks)
41+
- Final processed datasets consumed by the visualization

app.js

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,39 @@ navButtons.forEach((btn) => {
3232

3333
// Add click handlers for dropdown items
3434
navDropdownItems.forEach((item) => {
35-
item.addEventListener("click", () => setRoute(item.dataset.route));
35+
item.addEventListener("click", () => {
36+
const route = item.dataset.route;
37+
const section = item.dataset.section;
38+
39+
// First switch to the correct page
40+
setRoute(route);
41+
42+
// Then scroll to the section if specified
43+
if (section) {
44+
// Small delay to ensure page is visible before scrolling
45+
setTimeout(() => {
46+
const targetElement = document.getElementById(section);
47+
if (targetElement) {
48+
// For visualization tabs, also activate the tab
49+
if (section.startsWith('tab-')) {
50+
const tabName = section.replace('tab-', '');
51+
// Activate the corresponding tab button
52+
const tabButtons = document.querySelectorAll('.viz-step-btn');
53+
tabButtons.forEach(btn => {
54+
btn.classList.toggle('viz-step-btn--active', btn.dataset.tab === tabName);
55+
});
56+
// Show the corresponding tab content
57+
const tabContents = document.querySelectorAll('.tab-content');
58+
tabContents.forEach(content => {
59+
content.classList.toggle('tab-content--active', content.id === section);
60+
});
61+
}
62+
63+
targetElement.scrollIntoView({ behavior: 'smooth', block: 'start' });
64+
}
65+
}, 100);
66+
}
67+
});
3668
});
3769

3870
// Mobile menu toggle

0 commit comments

Comments
 (0)