Skip to content

Commit

Permalink
Fixes #28
Browse files Browse the repository at this point in the history
  • Loading branch information
corradio committed Jun 21, 2016
1 parent 67ed7ee commit 02b62c3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
height: 100%;
font-family: sans-serif;
}
.overlay {
width: 100%;
height: 100%;
position: absolute;
top: 0px;
opacity: 0.7;
background: black url('vendor/loading.svg') no-repeat center center;
}
.map {
width: 100%;
height: 100%;
Expand Down Expand Up @@ -108,6 +116,7 @@
</div>
<svg class="country-table"></svg>
</div>
<div class="loading overlay"></div>
<script>
var co2color = d3.scale.linear()
.domain([0, 250, 500])
Expand Down Expand Up @@ -527,6 +536,10 @@
.data(exchanges)
.projection(countryMap.projection())
.render();

d3.select('.loading')
.transition()
.style('opacity', 0);
};

// Periodically load data
Expand Down

0 comments on commit 02b62c3

Please sign in to comment.