Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
263 changes: 141 additions & 122 deletions content/data-features/rats-in-your-neighborhood/neighborhood-rats.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/dohmh/layouts/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h3 class="card-title"><a class="text-black" href="{{ .RelPermalink }}" class="t
<li><a href="pdf/Appendix1.pdf">Appendix 1 (PDF)</a>: Sampling Methodology and Data Sources for Emissions Indicators.</li>
<li><a href="pdf/Appendix2.pdf">Appendix 2 (PDF)</a>: Seasonal Average Pollutant Maps.</li>
<li><a href="pdf/Appendix3.pdf">Appendix 3 (PDF)</a>: Community District Average Pollution Levels.</li>
<li><a href="../../data-stories/traffic-and-air-pollution">The Public Health Impacts of PM<sub>2.5</sub> from Traffic Air Pollution data story</a>.</li>
<li><a href={{ relURL "data-stories/traffic-and-air-pollution" }}>The Public Health Impacts of PM<sub>2.5</sub> from Traffic Air Pollution data story</a>.</li>
<li><a href="https://data.cityofnewyork.us/Environment/NYCCAS-Air-Pollution-Rasters/q68s-8qxv">NYC OpenData: NYCCAS Air Pollution Rasters</a>.</li>
<li><a href="https://www.nyc.gov/site/doh/data/data-sets/air-quality-nyc-community-air-survey.page">New York Community Air Survey: past reports</a></li>
</ul>
Expand Down
6 changes: 3 additions & 3 deletions themes/dohmh/layouts/data-explorer/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ <h1 class="h2 mt-2">
<!-- Data sources -->
<div class="col-md-10 col-sm-12">
<div class="visFooterBox">
<span class="fs-xs font-weight-bold">Source: <a href="../../about/data-sources"><i class="fa-solid fa-circle-question"></i></a></span> <p class="fs-xs indicator-sources"></p>
<span class="fs-xs font-weight-bold">Source: <a href={{ relURL "about/data-sources" }}><i class="fa-solid fa-circle-question"></i></a></span> <p class="fs-xs indicator-sources"></p>
</div>
</div>
</div>
Expand Down Expand Up @@ -906,7 +906,7 @@ <h5 class="modal-title" id="geoModalLabel"><i class="fas fa-question-circle mr-
<li>Neighborhood Tabulation Areas (NTA)</li>
</ul>
</p>
<p>We try to make data available at as fine a geographic resolution as we can. <a href="../../data-stories/geographies/">Read more about different geographies at this data story</a>.</p>
<p>We try to make data available at as fine a geographic resolution as we can. <a href={{ relURL "data-stories/geographies" }}>Read more about different geographies at this data story</a>.</p>
<p>It would be convenient if each dataset could be made available at the same geography, but this is not always possible. The neighborhood boundaries available depend on the specifics of the underlying dataset.</p>

</div>
Expand Down Expand Up @@ -997,7 +997,7 @@ <h5 class="modal-title" id="linksModalLabel"><i class="fas fa-question-circle m
<div class="modal-body">
<p>On this site, we try to show how environmental factors might be connected to health outcomes. One way we do this is with <strong>Correlates</strong>. We choose potentially-related datasets and display them on a scatterplot so you can see how these two datasets are correlated.</p>
<p>The <strong>Disparities view</strong> displays neighborhoods by poverty category to show underlying disparities in the data.</p>
<p><a href="../../data-stories/povasthma">Read more about correlation here</a>.</p>
<p><a href={{ relURL "data-stories/povasthma" }}>Read more about correlation here</a>.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h3 class="h5">Enter your address</h3>
</ul>
</div>
<div class="d-flex justify-content-end border-top link fs-sm pt-1">
<p class="fs-sm"><a href="../../data-explorer/mice-and-rats/?id=2434#display=map"><i class="fas fa-chart-line mr-1" aria-hidden="true"></i>Get data on rat inspections by neighborhood</a>.</p>
<p class="fs-sm"><a href={{ relURL "data-explorer/mice-and-rats/?id=2434#display=map" }}><i class="fas fa-chart-line mr-1" aria-hidden="true"></i>Get data on rat inspections by neighborhood</a>.</p>

</div>

Expand Down Expand Up @@ -218,8 +218,8 @@ <h4>See a problem with rats or trash?</h4>
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.4.4/proj4.js"></script>
<script src="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/build/ol.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/4.4.0/papaparse.min.js"></script>
<script src="https://maps.nyc.gov/nyc-lib/v1.2.79/js/babel-polyfill.js"></script>
<script src="https://maps.nyc.gov/nyc-lib/v1.2.79/js/nyc-ol-lib.js"></script>
<script src="https://maps.nyc.gov/nyc-lib/v1.4.78/js/babel-polyfill.js"></script>
<script src="https://maps.nyc.gov/nyc-lib/v1.4.78/js/nyc-ol-lib.js"></script>

<!--bring in rmz JS -->
<script type="text/javascript" src="neighborhood-rats.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion themes/dohmh/layouts/data-features/restaurant-grades.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h2 class="home-label border-bottom">Select a year</h2><br>

<hr class="my-2">

<a href="../../../data-explorer/restaurant-food-safety/" class="button btn btn-md btn-block btn-outline-primary"><i class="fas fa-chart-line mr-1" aria-hidden="true"></i>Full dataset</a>
<a href={{ relURL "data-explorer/restaurant-food-safety" }} class="button btn btn-md btn-block btn-outline-primary"><i class="fas fa-chart-line mr-1" aria-hidden="true"></i>Full dataset</a>

<a href="https://a816-health.nyc.gov/ABCEatsRestaurants/#!/Search" class="button btn btn-md btn-block btn-outline-primary" target="_blank" rel="noopener noreferrer"><i class="fas fa-external-link mr-1"></i>Restaurant inspection results</a>

Expand Down
2 changes: 1 addition & 1 deletion themes/dohmh/layouts/data-stories/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h1 class="h2 data-stories mb-3"><i class="fas fa-passport" aria-hidden="true" s
<ul class="extensible-list text-muted mt-3">
<li>
<p class="text-muted" >
<span class="fa fa-envelope"></span> Like this story? <a href="../../about/subscribe" class="subscribe-link"> Sign up to find out when we post something new.</a></p>
<span class="fa fa-envelope"></span> Like this story? <a href={{ relURL "about/subscribe" }} class="subscribe-link"> Sign up to find out when we post something new.</a></p>
</li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion themes/dohmh/layouts/data-stories/uhi.html
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ <h1 class="h2 data-stories mb-3"><i class="fas fa-passport" aria-hidden="true" s
<br><br><br><br>
<div class="asidebox">
<span style="font-weight: bold; color: #5e5e5e;">More about NYC's greening efforts</span>
<p>There are numerous efforts to increase tree canopy and green space overall in NYC. The City plants and cares for <a href="https://www.nycgovparks.org/trees/street-tree-planting">street trees</a> along the right-of-way; forbs, shrubs, and trees in parkland; <a href="https://www1.nyc.gov/site/dep/water/rain-gardens.page">rain gardens</a> and <a href="https://www1.nyc.gov/site/dep/water/green-infrastructure.page">other green infrastructure</a> to capture stormwater; and more. Many tree plantings have been concentrated in areas with <a href="https://www.milliontreesnyc.org/html/million_trees/neighborhoods.shtml">higher than average rates of asthma</a> and <a href="../../key-topics/climatehealth/hvi/">heat-vulnerable neighborhoods</a>.</p>
<p>There are numerous efforts to increase tree canopy and green space overall in NYC. The City plants and cares for <a href="https://www.nycgovparks.org/trees/street-tree-planting">street trees</a> along the right-of-way; forbs, shrubs, and trees in parkland; <a href="https://www1.nyc.gov/site/dep/water/rain-gardens.page">rain gardens</a> and <a href="https://www1.nyc.gov/site/dep/water/green-infrastructure.page">other green infrastructure</a> to capture stormwater; and more. Many tree plantings have been concentrated in areas with <a href="https://www.milliontreesnyc.org/html/million_trees/neighborhoods.shtml">higher than average rates of asthma</a> and <a href={{ relURL "key-topics/climatehealth/hvi" }}>heat-vulnerable neighborhoods</a>.</p>
<p>Trust for Public Land’s <a href="https://www.tpl.org/our-work/new-york-city-playgrounds">New York City Playgrounds program</a> has transformed over 200 playgrounds from using asphalt to using cooler, greener materials. There are also <a href="https://naturalareasnyc.org/map">forests in all five boroughs</a>, and the Department of Parks and Recreation and the Natural Areas Conservancy have developed the <a href="https://naturalareasnyc.org/forests">Forest Management Framework for New York City</a>, a 25-year plan that lays out the process, costs, best practices, and goals for caring for forests in the city. </p>
<p>You can get involved, too:</p>
<ul>
Expand Down
4 changes: 2 additions & 2 deletions themes/dohmh/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

{{- if .Params.mapLib }}
<!-- nyc-lib css (for maps in the core framework)-->
<link href="https://maps.nyc.gov/nyc-lib/v1.2.79/css/nyc-basic-lib.css" rel="stylesheet">
<link href="https://maps.nyc.gov/nyc-lib/v1.4.78/css/nyc-basic-lib.css" rel="stylesheet">
{{- end }}


Expand Down Expand Up @@ -123,7 +123,7 @@
{{- end }}

<!-- nyc-lib css -->
<link href="https://maps.nyc.gov/nyc-lib/v1.2.79/css/nyc-basic-lib.css" rel="stylesheet">
<link href="https://maps.nyc.gov/nyc-lib/v1.4.78/css/nyc-basic-lib.css" rel="stylesheet">



Expand Down
2 changes: 1 addition & 1 deletion themes/dohmh/layouts/partials/nr-report-footer-sm.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h4>More about</h4>
</div>
<div class="fs-lg">
{{- range $content.keytopic -}}
<a href="../../../key-topics/{{ .link }}">{{ .text }}</a>
<a href={{ urls.JoinPath ( relURL "key-topics" ) .link }}>{{ .text }}</a>
<hr class="my-2">
{{- end -}}
</div>
Expand Down
2 changes: 1 addition & 1 deletion themes/dohmh/layouts/partials/related-footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h4 class="h3">You might also be interested in:</h4>

{{ end }}

<a class="text-black" href="../../{{ .url }}">
<a class="text-black" href={{ relURL .url }}>
<span class='text-primary {{ $accent }} mr-2'>{{ safe.HTML $icon }}</span>{{ .title }}
</a>
<hr class="my-2">
Expand Down
Loading
Loading