diff options
| author | Christian Cleberg <[email protected]> | 2026-04-17 12:36:00 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-17 12:36:00 -0500 |
| commit | 9b6de370a0b6cb95f46c29f5e1827f9c418ef6cf (patch) | |
| tree | 6fb0eb8da7900075a46b916237aa1748881e9d4c /assets/js/ui | |
| parent | 0d18b7d6256a2c9685c2a5ea90412a6079ea07bd (diff) | |
| download | world-incarceration-9b6de370a0b6cb95f46c29f5e1827f9c418ef6cf.tar.gz world-incarceration-9b6de370a0b6cb95f46c29f5e1827f9c418ef6cf.tar.bz2 world-incarceration-9b6de370a0b6cb95f46c29f5e1827f9c418ef6cf.zip | |
phase 1: scaffold D3/TopoJSON migration structure
- Extract country prison data to assets/data/countries.js (ES module)
- Add ISO numeric→alpha-3 lookup table for TopoJSON ID bridging
- Download world-atlas countries-110m.json (TopoJSON, 108KB)
- Create stub ES modules for map, charts, and UI layers
- Replace ZingChart/jQuery script tags with single ES module entry point
- Preserve original app.js as _app.js.bak for Phase 2+ reference
Diffstat (limited to 'assets/js/ui')
| -rw-r--r-- | assets/js/ui/compare.js | 2 | ||||
| -rw-r--r-- | assets/js/ui/controls.js | 3 | ||||
| -rw-r--r-- | assets/js/ui/modal.js | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/assets/js/ui/compare.js b/assets/js/ui/compare.js new file mode 100644 index 0000000..d933609 --- /dev/null +++ b/assets/js/ui/compare.js @@ -0,0 +1,2 @@ +// Phase 5: side-by-side country comparison panel +export function initCompare(countries) {} diff --git a/assets/js/ui/controls.js b/assets/js/ui/controls.js new file mode 100644 index 0000000..15c1a3b --- /dev/null +++ b/assets/js/ui/controls.js @@ -0,0 +1,3 @@ +// Phase 5: metric selector, label toggle, reset button bindings +export function initControls(onMetricChange, onLabelToggle, onReset) {} +export function getTop5(countries, metricKey) {} diff --git a/assets/js/ui/modal.js b/assets/js/ui/modal.js new file mode 100644 index 0000000..e110764 --- /dev/null +++ b/assets/js/ui/modal.js @@ -0,0 +1,2 @@ +// Phase 5: country detail modal +export function showCountryModal(countryData) {} |
