Skip to content

Commit

Permalink
oops…had the cardinal and direction values reversed.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMakela-NOAA committed Jun 24, 2014
1 parent 82d6721 commit af7175f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ It has been designed as a jquery plugin and as such can be easily
embedded anywhere(within reason) in an HTML document.

Here's what it looks like.

![Image of compass-rose-ui]
(https://raw.githubusercontent.com/NOAA-ORR-ERD/compass-rose-ui/master/ui_screenshot.png)

Expand Down Expand Up @@ -104,12 +104,12 @@ Here is a short snippet that illustrates these functions...
<script type="text/javascript" >
...
var cardinal_value = 45.0; // for example
var cardinal_value = 'ne'; // for example
var angle = $('#const-wind-1')[0].settings['cardinal-angle'](cardinal_value);
DoSomethingWithTheAngle(angle);
var direction_value = 'ne'; // for example
var direction_value = 45.0; // for example
var cardinal = $('#const-wind-1')[0].settings['cardinal-name'](direction_value);
DoSomethingWithTheCardinal(cardinal);
Expand Down

0 comments on commit af7175f

Please sign in to comment.