Skip to content

Commit

Permalink
Merge branch 'main' of github.com:chihacknight/il-solar-map into main
Browse files Browse the repository at this point in the history
  • Loading branch information
derekeder committed Nov 17, 2023
2 parents 73a0d0f + 2a834b5 commit 386b551
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 0 additions & 4 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@
<main>
{{content}}
</main>

<footer class="pt-5 my-5 text-muted border-top">
Created by <a href='https://chihacknight.org'>Chi Hack Night</a> and the <a href='https://ilcleanjobs.org/'>Illinois Clean Jobs Coalition</a> &copy; 2023
</footer>
</div>

<script src="/js/bootstrap.bundle.min.js"></script>
Expand Down
4 changes: 4 additions & 0 deletions _layouts/narrow.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
<main>
{{content}}
</main>

<footer class="pt-5 my-5 text-muted border-top">
Created by <a href='https://chihacknight.org'>Chi Hack Night</a> and the <a href='https://ilcleanjobs.org/'>Illinois Clean Jobs Coalition</a> &copy; 2023
</footer>

</div>
4 changes: 2 additions & 2 deletions css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ body, p, table {
.legend {
background-color: #fff;
border-radius: 3px;
bottom: 80px;
top: 115px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
font: 14px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
padding: 10px;
position: absolute;
right: 10px;
right: 20px;
z-index: 1;
}

Expand Down
6 changes: 6 additions & 0 deletions js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ function addLayer(map, layerSource, visible = 'none'){
})
}

$(window).resize(function () {
var h = $(window).height(),
offsetTop = 125; // Calculate the top offset

$('#map').css('height', (h - offsetTop));
}).resize();

mapboxgl.accessToken = 'pk.eyJ1IjoiZGF0YW1hZGUiLCJhIjoiaXhhVGNrayJ9.0yaccougI3vSAnrKaB00vA'
const map = new mapboxgl.Map({
Expand Down

0 comments on commit 386b551

Please sign in to comment.