Skip to content

Commit 3c9f069

Browse files
committed
link to applications
1 parent fd2033b commit 3c9f069

File tree

7 files changed

+65
-35
lines changed

7 files changed

+65
-35
lines changed

MassHealth.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

elig.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"Elig": {
2626
"Income": "Unclear!",
2727
"Age": "Ages 21-64",
28-
"Resident": "Massachusets Resident"
28+
"Resident": "Massachusets Resident",
29+
"URL":"https://www.mass.gov/how-to/apply-for-masshealth-the-health-safety-net-or-the-childrens-medical-security-plan"
2930
}
3031
},
3132
"SNAP": {
@@ -41,7 +42,8 @@
4142
"Elig": {
4243
"Income": "$2,510",
4344
"Benefit": "$3,492",
44-
"Resident": "Massachusets Resident"
45+
"Resident": "Massachusets Resident",
46+
"URL":"https://www.mass.gov/how-to/apply-for-snap-benefits-food-stamps"
4547
}
4648
},
4749
"LIHEAP": {
@@ -56,7 +58,8 @@
5658
"Description": "The Massachusetts Low Income Home Energy Assistance Program",
5759
"Elig": {
5860
"Income": "$49,196",
59-
"Resident": "Massachusets Resident"
61+
"Resident": "Massachusets Resident",
62+
"URL":"https://www.mass.gov/how-to/apply-for-home-heating-and-energy-assistance"
6063
}
6164
},
6265
"SSI": {
@@ -72,7 +75,8 @@
7275
"Elig": {
7376
"Income": "$1,433",
7477
"Age": "Ages 65 and older, or disabled at any age",
75-
"Resident": "Massachusets Resident"
78+
"Resident": "Massachusets Resident",
79+
"URL":"https://www.mass.gov/how-to/apply-for-ssdi-or-ssi-benefits"
7680
}
7781
},
7882
"Other": {

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ <h2 id="tree-map-header">
3232
<main class="main">
3333
<div id="d3_chart_div"></div>
3434
<div id="statistics" class="sidebar">
35+
<button id="apply-now-button" style="display: none;">Apply Now</button>
3536
</div>
3637
<div id="table_div" class="table-container"></div>
3738
</main>

other.json

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"Income": "$0 currently, at least $6,300 during last 4 completed quarters",
2727
"Age": "Ages 18 and older",
2828
"Resident": "U.S. Citizen",
29-
"Other":"Legally authorized to work in the U.S., working significantly reduced hours or unemployed through no fault of your own, able to begin work without delay when offered"
29+
"Other":"Legally authorized to work in the U.S., working significantly reduced hours or unemployed through no fault of your own, able to begin work without delay when offered",
30+
"URL":"https://www.mass.gov/how-to/apply-for-unemployment-benefits"
3031
}
3132
},
3233
"EAEDC": {
@@ -41,7 +42,8 @@
4142
"Description": "Emergency Aid to the Elderly, Disabled and Children",
4243
"Elig": {
4344
"Income": "$4,812",
44-
"Resident": "U.S. citizen or legal noncitizen, and Massachusets Resident"
45+
"Resident": "U.S. citizen or legal noncitizen, and Massachusets Resident",
46+
"URL":"https://www.mass.gov/info-details/check-eaedc-eligibility-and-how-to-apply"
4547
}
4648
},
4749
"MASSVETS": {
@@ -57,7 +59,8 @@
5759
"Elig": {
5860
"Income": "$24,972",
5961
"Resident": "Massachusets Resident",
60-
"Other": "Must be a veteran, or a dependent of a veteran"
62+
"Other": "Must be a veteran, or a dependent of a veteran",
63+
"URL":"https://www.mass.gov/how-to/apply-for-financial-help-for-veterans"
6164
}
6265
},
6366
"TAFDC": {
@@ -74,7 +77,25 @@
7477
"Income": "$6,636",
7578
"Age": "Have childen ages 18 or younger",
7679
"Resident": "Massachusets Resident",
77-
"Other": "You may also be eligible if you are pregnant and due in less than 4 months, or are a caregiver for a child related to you"
80+
"Other": "You may also be eligible if you are pregnant and due in less than 4 months, or are a caregiver for a child related to you",
81+
"URL":"https://www.mass.gov/how-to/apply-for-tafdc"
82+
}
83+
},
84+
"EA": {
85+
"Parent": "Services",
86+
"Size": 20000,
87+
"Spending": 324000000,
88+
"Color ": 5,
89+
"Site": "https://www.mass.gov/how-to/apply-for-emergency-assistance-ea-family-shelter",
90+
"Department": "EOHLC",
91+
"RoundSize": "20K",
92+
"RoundSpend": "324M",
93+
"Description": "Emergency Assistance Family Shelter",
94+
"Elig": {
95+
"Income": "$6,636",
96+
"Resident": "Massachusets Resident",
97+
"Other": "You are pregnant or have children under 21",
98+
"URL":"https://www.mass.gov/how-to/apply-for-emergency-assistance-ea-family-shelter"
7899
}
79100
}
80101
}

script.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ function displayNodeInfo(data) {
226226
if (data.eligibility.Other) {
227227
eligibilityHtml += `<p>Other: ${data.eligibility.Other}</p>`;
228228
}
229+
if (data.eligibility.URL) {
230+
eligibilityHtml += `<p><a href="${data.eligibility.URL}" target="_blank" class="apply-now-link">Apply Now!</a></p>`;
231+
}
229232
}
230233

231234
const formattedValue = data.value.toLocaleString();
@@ -321,6 +324,7 @@ function drawTable(data) {
321324
}
322325

323326

327+
324328
/**
325329
* wrapText(text, width)
326330
* Wraps text within specified width.

services.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"Elig": {
2626
"Income": "Unclear!",
2727
"Age": "Ages 21-64",
28-
"Resident": "Massachusets Resident"
28+
"Resident": "Massachusets Resident",
29+
"URL":"https://www.mass.gov/how-to/apply-for-masshealth-the-health-safety-net-or-the-childrens-medical-security-plan"
2930
}
3031
},
3132
"SNAP": {
@@ -41,7 +42,8 @@
4142
"Elig": {
4243
"Income": "$2,510",
4344
"Benefit": "$3,492",
44-
"Resident": "Massachusets Resident"
45+
"Resident": "Massachusets Resident",
46+
"URL":"https://www.mass.gov/how-to/apply-for-snap-benefits-food-stamps"
4547
}
4648
},
4749
"LIHEAP": {
@@ -56,7 +58,8 @@
5658
"Description": "The Massachusetts Low Income Home Energy Assistance Program",
5759
"Elig": {
5860
"Income": "$49,196",
59-
"Resident": "Massachusets Resident"
61+
"Resident": "Massachusets Resident",
62+
"URL":"https://www.mass.gov/how-to/apply-for-home-heating-and-energy-assistance"
6063
}
6164
},
6265
"SSI": {
@@ -72,7 +75,8 @@
7275
"Elig": {
7376
"Income": "$1,433",
7477
"Age": "Ages 65 and older, or disabled at any age",
75-
"Resident": "Massachusets Resident"
78+
"Resident": "Massachusets Resident",
79+
"URL":"https://www.mass.gov/how-to/apply-for-ssdi-or-ssi-benefits"
7680
}
7781
},
7882
"Education": {

style.css

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -381,17 +381,17 @@ h2 {
381381
}
382382

383383
.sidebar h3 {
384-
text-align: left !important;
385-
width: 100% !important;
386-
font-size: 16px !important;
387-
margin-top: 18px !important;
388-
margin-bottom: 10px !important;
384+
text-align: left;
385+
width: 100% ;
386+
font-size: 16px ;
387+
margin-top: 18px ;
388+
margin-bottom: 10px ;
389389
padding: 10px !important;
390390
font-weight: bold !important;
391391
}
392392

393393
.sidebar p {
394-
text-align: left !important;
394+
text-align: left ;
395395
width: 100% !important;
396396
padding: 10px !important;
397397
font-size: 16px !important;
@@ -400,14 +400,26 @@ h2 {
400400
}
401401

402402
.sidebar a {
403-
color: black !important;
403+
color: black ;
404404
text-decoration: none !important;
405405
}
406406

407407
.sidebar a:hover {
408408
color: var(--link-color) !important;
409409
text-decoration: underline !important;
410410
}
411+
412+
.apply-now-link {
413+
line-height: 2 !important;
414+
color: var(--link-color) !important;
415+
font-weight: bold;
416+
text-decoration: none;
417+
}
418+
419+
.apply-now-link:hover {
420+
color: var(--link-color) !important;
421+
text-decoration: underline;
422+
}
411423

412424
}
413425

0 commit comments

Comments
 (0)