|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"/> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
| 6 | + <title>CDI — Constitutional Divergence Index</title> |
| 7 | + <style> |
| 8 | + body{background:#0b0d12;color:#e6e6e6;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;margin:0;line-height:1.6} |
| 9 | + header{background:#12161f;text-align:center;padding:1rem;border-bottom:1px solid rgba(255,255,255,.08)} |
| 10 | + h1{color:#5ddfff;margin-bottom:.25rem} |
| 11 | + p.lead{color:#c8d2df;margin-top:0} |
| 12 | + main{max-width:900px;margin:1.5rem auto;padding:0 1rem} |
| 13 | + section{background:#141820;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:1rem 1.25rem;margin-bottom:1rem} |
| 14 | + code{background:rgba(255,255,255,.08);padding:.1rem .3rem;border-radius:6px} |
| 15 | + table{width:100%;border-collapse:collapse;margin-top:1rem} |
| 16 | + th,td{border:1px solid rgba(255,255,255,.08);padding:.5rem;text-align:left} |
| 17 | + th{background:#1b1f26;color:#5ddfff} |
| 18 | + footer{text-align:center;font-size:.85rem;color:#9fb3c8;padding:1rem;margin-top:2rem;border-top:1px solid rgba(255,255,255,.08)} |
| 19 | + a{color:#5ddfff;text-decoration:none} a:hover{text-decoration:underline} |
| 20 | + </style> |
| 21 | +</head> |
| 22 | +<body> |
| 23 | +<header> |
| 24 | + <h1>CDI — Constitutional Divergence Index</h1> |
| 25 | + <p class="lead">Quantifies deviation from constitutional fidelity across domains.</p> |
| 26 | + <nav> |
| 27 | + <a href="../index.html">🏠 Home</a> · |
| 28 | + <a href="../ciri/index.html">CIRI</a> · |
| 29 | + <a href="../cibs/index.html">CIBS</a> · |
| 30 | + <a href="../cii/index.html">CII</a> · |
| 31 | + <a href="../macro/index.html">Macro</a> |
| 32 | + </nav> |
| 33 | +</header> |
| 34 | + |
| 35 | +<main> |
| 36 | + <section> |
| 37 | + <h2>📊 What is CDI?</h2> |
| 38 | + <p> |
| 39 | + The <strong>Constitutional Divergence Index</strong> measures the extent to which laws, budgets, or policies diverge from constitutional limits and obligations. |
| 40 | + Scores range from <strong>0.00 (fully faithful)</strong> to <strong>1.00 (fully divergent)</strong>. |
| 41 | + </p> |
| 42 | + <p> |
| 43 | + CDI data feeds directly into <a href="../ciri/index.html">CIRI</a>, which translates these deviations into measurable economic recovery values. |
| 44 | + </p> |
| 45 | + </section> |
| 46 | + |
| 47 | + <section> |
| 48 | + <h2>📈 Divergence by Category</h2> |
| 49 | + <p>Below is a sample of calculated divergence scores. These values can be refined by jurisdiction or sector.</p> |
| 50 | + <table id="divTable"> |
| 51 | + <thead> |
| 52 | + <tr><th>Category</th><th>Divergence (0–1.0)</th><th>Confidence</th></tr> |
| 53 | + </thead> |
| 54 | + <tbody></tbody> |
| 55 | + </table> |
| 56 | + </section> |
| 57 | + |
| 58 | + <section> |
| 59 | + <h2>📁 Source Data</h2> |
| 60 | + <p>Model file: <code>model.json</code> · Live data: <code>divergence.csv</code></p> |
| 61 | + <p><a href="./model.json" download>Download model.json</a> · <a href="./divergence.csv" download>Download divergence.csv</a></p> |
| 62 | + </section> |
| 63 | +</main> |
| 64 | + |
| 65 | +<footer> |
| 66 | + © 2025 Terra Dawn Shouse · |
| 67 | + <a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener" style="color:#5ddfff"> |
| 68 | + CC BY-NC 4.0 International License |
| 69 | + </a> |
| 70 | +</footer> |
| 71 | + |
| 72 | +<script> |
| 73 | +(async()=>{ |
| 74 | + const res = await fetch('./divergence.csv'); |
| 75 | + if(!res.ok) return; |
| 76 | + const text = await res.text(); |
| 77 | + const rows = text.trim().split(/\r?\n/).map(r=>r.split(',')); |
| 78 | + const tbody = document.querySelector('#divTable tbody'); |
| 79 | + rows.slice(1).forEach(r=>{ |
| 80 | + const tr=document.createElement('tr'); |
| 81 | + tr.innerHTML=`<td>${r[0]}</td><td>${r[1]}</td><td>${r[2]}</td>`; |
| 82 | + tbody.appendChild(tr); |
| 83 | + }); |
| 84 | +})(); |
| 85 | +</script> |
| 86 | +</body> |
| 87 | +</html> |
0 commit comments