Skip to content

Commit

Permalink
create a map of all product factories so they can be referred to by name
Browse files Browse the repository at this point in the history
  • Loading branch information
cambecc committed Feb 18, 2014
1 parent c8f0d0e commit a1a2bce
Show file tree
Hide file tree
Showing 8 changed files with 122 additions and 552 deletions.
22 changes: 11 additions & 11 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html itemscope itemtype="http://schema.org/Map" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
<head>
<meta charset="utf-8"/>
<title>earth wind map</title>
<title>earth :: an animated map of global wind and weather</title>
<meta itemprop="name" content="earth"/>
<meta itemprop="description" name="description" content="an animated map of global weather conditions"/>
<meta itemprop="description" name="description" content="an animated map of global wind and weather"/>
<meta itemprop="author" name="author" content="Cameron Beccario"/>

<meta property="og:type" content="website"/>
<meta property="og:title" content="earth"/>
<meta property="og:description" content="An animated map of global weather conditions. Visit the community at https://www.facebook.com/EarthWindMap"/>
<meta property="og:description" content="An animated map of global wind and weather. Visit the community at https://www.facebook.com/EarthWindMap"/>
<meta property="og:url" content="http://earth.nullschool.net"/>
<meta property="og:image" content="http://earth.nullschool.net/preview.jpg"/>
<meta property="fb:admins" content="510217216"/>
Expand Down Expand Up @@ -81,14 +81,14 @@
class="text-button" id="enable-ocean-mode">Ocean</span>
</p>
<p class="wind-mode">Height | <span
class="text-button" id="surface" title="Surface">Sfc</span><span
class="text-button" id="iso-1000">1000</span><span
class="text-button" id="iso-850">850</span><span
class="text-button" id="iso-700">700</span><span
class="text-button" id="iso-500">500</span><span
class="text-button" id="iso-250">250</span><span
class="text-button" id="iso-70">70</span><span
class="text-button" id="iso-10">10</span> hPa
class="surface text-button" id="surface-level" title="Surface">Sfc</span><span
class="surface text-button" id="isobaric-1000hPa">1000</span><span
class="surface text-button" id="isobaric-850hPa">850</span><span
class="surface text-button" id="isobaric-700hPa">700</span><span
class="surface text-button" id="isobaric-500hPa">500</span><span
class="surface text-button" id="isobaric-250hPa">250</span><span
class="surface text-button" id="isobaric-70hPa">70</span><span
class="surface text-button" id="isobaric-10hPa">10</span> hPa
</p>
<p class="wind-mode">Overlay | <span
class="text-button" id="off">None</span><span
Expand Down
18 changes: 9 additions & 9 deletions public/jp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html itemscope itemtype="http://schema.org/Map" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
<head>
<meta charset="utf-8"/>
<title>earth wind map</title>
<title>earth :: an animated map of global wind and weather</title>
<meta itemprop="name" content="地球"/>
<meta itemprop="description" name="description" content="世界中の天気状況がビジュアライズ"/>
<meta itemprop="author" name="author" content="Cameron Beccario"/>
Expand Down Expand Up @@ -81,14 +81,14 @@
class="text-button" id="enable-ocean-mode"></span>
</p>
<p class="wind-mode">高度 | <span
class="text-button" id="surface" title="地上">地上</span><span
class="text-button" id="iso-1000">1000</span><span
class="text-button" id="iso-850">850</span><span
class="text-button" id="iso-700">700</span><span
class="text-button" id="iso-500">500</span><span
class="text-button" id="iso-250">250</span><span
class="text-button" id="iso-70">70</span><span
class="text-button" id="iso-10">10</span> hPa
class="surface text-button" id="surface-level" title="地上">地上</span><span
class="surface text-button" id="isobaric-1000hPa">1000</span><span
class="surface text-button" id="isobaric-850hPa">850</span><span
class="surface text-button" id="isobaric-700hPa">700</span><span
class="surface text-button" id="isobaric-500hPa">500</span><span
class="surface text-button" id="isobaric-250hPa">250</span><span
class="surface text-button" id="isobaric-70hPa">70</span><span
class="surface text-button" id="isobaric-10hPa">10</span> hPa
</p>
<p class="wind-mode">レイヤー | <span
class="text-button" id="off"></span><span
Expand Down
6 changes: 3 additions & 3 deletions public/libs/earth/1.0.0/earth.js
Original file line number Diff line number Diff line change
Expand Up @@ -1046,9 +1046,9 @@
});

// Add handlers for all wind level buttons.
bindButtonToConfiguration("#surface", {param: "wind", surface: "surface", level: "level"});
products.pressureLevels.forEach(function(pressure) {
bindButtonToConfiguration("#iso-" + pressure, {param: "wind", surface: "isobaric", level: pressure + "hPa"});
d3.selectAll(".surface").each(function() {
var id = this.id, parts = id.split("-");
bindButtonToConfiguration("#" + id, {param: "wind", surface: parts[0], level: parts[1]});
});

// Add handlers for ocean animation types.
Expand Down
Loading

0 comments on commit a1a2bce

Please sign in to comment.