Skip to content

Commit

Permalink
fixed descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
grace-manthey authored Aug 11, 2023
1 parent 70d84e9 commit 05ddc64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions weathering-tomorrow-final/js/map_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -966,12 +966,14 @@ $("#zip_mapbutton").click(function(){
$(".map-tab").click(function(){
var tab_risk_type = $(this).attr("risk_type")
var tab_risk_type_long = $(this).attr("risk_type_long")
var tab_risk_description = $(this).attr("risk_description")
risk_type = tab_risk_type

$(this).css({"background-color":"#fb991b", "color":"white", "box-shadow":"0px 0px 3px #b1b7ba"})
$(".map-tab").not(this).css({"background-color":"#b1b7ba", "box-shadow":"none", "color":"black"})

$(".risk_type_title").html(tab_risk_type_long);
$(".risk_definition").html(tab_risk_description);

console.log(risk_type)

Expand Down
8 changes: 4 additions & 4 deletions weathering-tomorrow-final/risk-maps.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@


<div class="map-tabs">
<div class="map-tab fire-tab" risk_type="fire" risk_type_long="wildfire">Wildfire</div>
<div class="map-tab heat-tab" risk_type="heat" risk_type_long="heat">Heat</div>
<div class="map-tab flood-tab" risk_type="flood" risk_type_long="flooding">Flooding</div>
<div class="map-tab wind-tab" risk_type="wind" risk_type_long="wind">Wind</div>
<div class="map-tab fire-tab" risk_type="fire" risk_type_long="wildfire" risk_description="Major risk means a property is forecast to have a 6-14% percent chance of being directly damaged by wildfire over 30 years. Severe risk means at least a 15% chance.">Wildfire</div>
<div class="map-tab heat-tab" risk_type="heat" risk_type_long="heat" risk_description="Major risk means a property is forecast to experience an average July heat index of 89-95 degrees over 30 years. Severe risk means an average of 95-110 degrees.">Heat</div>
<div class="map-tab flood-tab" risk_type="flood" risk_type_long="flooding" risk_description="Major risk means a property is forecast to have an 80% percent chance of flooding once over 30 years. Severe risk means at least a 99% chance.">Flooding</div>
<div class="map-tab wind-tab" risk_type="wind" risk_type_long="wind" risk_description="Major risk means a property is forecast to have an 26% percent chance of experiencing tropical storm winds once over 30 years. Severe risk means at least a 80% chance.">Wind</div>
</div>

<div class="map-container">
Expand Down

0 comments on commit 05ddc64

Please sign in to comment.