Skip to content

Commit

Permalink
Releasing v2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fleeting committed Jan 23, 2014
1 parent ca0a000 commit c8375fb
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 72 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# simpleWeather - jQuery Plugin
# simpleWeather - jQuery Plugin [![GitHub version](https://badge.fury.io/gh/monkeecreate%2Fjquery.simpleWeather.png)](http://badge.fury.io/gh/monkeecreate%2Fjquery.simpleWeather)

A simple jQuery plugin to display the current weather information for any location using Yahoo! Weather. Developed by [James Fleeting](http://twitter.com/twofivethreetwo). You can find demos and docs at [simpleweatherjs.com](http://simpleweatherjs.com).
A simple jQuery plugin to display the current weather information for any location using Yahoo! Weather. Developed by [James Fleeting](http://twitter.com/fleetingftw). You can find demos and docs at [simpleweatherjs.com](http://simpleweatherjs.com).

## Get It
## Get The Latest
**[Bower](http://bower.io/)**
```shell
bower install jquery-simpleweather
bower install simpleWeather
```

**[CDNJS](http://cdnjs.com/)**
**[CDNJS](http://cdnjs.com/libraries/jquery.simpleWeather/)**
```html
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.simpleWeather/2.3.0/jquery.simpleWeather.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.simpleWeather/2.4.0/jquery.simpleWeather.min.js"></script>
```

**Git**
Expand All @@ -22,8 +22,7 @@ git clone git://github.com/monkeecreate/jquery.simpleWeather.git
> Download the latest version at [simpleweatherjs.com](http://simpleweatherjs.com)
## Questions?
If you have any questions or problems hit me up on [twitter](http://twitter.com/twofivethreetwo) or create a [new issue](https://github.com/monkeecreate/jquery.simpleWeather/issues/new). Don't forget to check the documentation and FAQ at [simpleweatherjs.com](http://simpleweatherjs.com).
If you have any questions or problems hit me up on [twitter](http://twitter.com/fleetingftw) or create a [new issue](https://github.com/monkeecreate/jquery.simpleWeather/issues/new). Don't forget to check the documentation and FAQ at [simpleweatherjs.com](http://simpleweatherjs.com).


[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/monkeecreate/jquery.simpleweather/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/monkeecreate/jquery.simpleweather/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "simpleWeather",
"description": "A simple jQuery plugin to display the current weather information for any location.",
"main": "jquery.simpleWeather.js",
"version": "2.3.0",
"version": "2.4.0",
"homepage": "http://simpleweatherjs.com",
"authors": [
"James Fleeting <hello@jamesfleeting.com>"
Expand Down
34 changes: 0 additions & 34 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@

<script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
</head>

<body>
<div class="container-narrow">
<div class="jumbotron">
Expand Down Expand Up @@ -90,45 +89,12 @@ <h2>Fancy Demo</h2>
<p>This demo is still extremely simple, just shows what you can do with a little CSS to spice it up.</p>

<iframe style="width: 100%; height: 350px; box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.4);" src="http://jsfiddle.net/fleeting/a4hbL/embedded/result,js,css,html/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

</div>
</div>
<hr>
</div>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script src="http:////cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.2.1/bootstrap.min.js"></script>
<script src="jquery.simpleWeather-2.3.min.js"></script>
<script>
$(function() {
$.simpleWeather({
zipcode: '',
woeid: '2357536',
location: '',
unit: 'f',
success: function(weather) {
html = '<h3>'+weather.city+', '+weather.region+' '+weather.country+'</h3>';
html += '<p><strong>Today\'s High</strong>: '+weather.high+'&deg; '+weather.units.temp+' - <strong>Today\'s Low</strong>: '+weather.low+'&deg; '+weather.units.temp+'</p>';
html += '<p><strong>Current Temp</strong>: '+weather.temp+'&deg; '+weather.units.temp+' ('+weather.tempAlt+'&deg; C)</p>';
html += '<p><strong>Condition Code</strong>: '+weather.code+'</p>';
html += '<p><strong>Thumbnail</strong>: <img src="'+weather.thumbnail+'"></p>';
html += '<p><strong>Wind</strong>: '+weather.wind.direction+' '+weather.wind.speed+' '+weather.units.speed+' <strong>Wind Chill</strong>: '+weather.wind.chill+'</p>';
html += '<p><strong>Currently</strong>: '+weather.currently+' - <strong>Forecast</strong>: '+weather.forecast+'</p>';
html += '<p><img src="'+weather.image+'"></p>';
html += '<p><strong>Humidity</strong>: '+weather.humidity+' <strong>Pressure</strong>: '+weather.pressure+' <strong>Rising</strong>: '+weather.rising+' <strong>Visibility</strong>: '+weather.visibility+'</p>';
html += '<p><strong>Heat Index</strong>: '+weather.heatindex+'</p>';
html += '<p><strong>Sunrise</strong>: '+weather.sunrise+' - <strong>Sunset</strong>: '+weather.sunset+'</p>';
html += '<p><strong>Tomorrow\'s Date</strong>: '+weather.tomorrow.day+' '+weather.tomorrow.date+'<br /><strong>Tomorrow\'s High/Low</strong>: '+weather.tomorrow.high+'/'+weather.tomorrow.low+'<br /><strong>Tomorrow\'s Condition Code</strong>: '+weather.tomorrow.code+'<br /><strong>Tomorrow\'s Forecast</strong>: '+weather.tomorrow.forecast+'<br /> <strong>Tomorrow\'s Image</strong>: '+weather.tomorrow.image+'</p>';
html += '<p><strong>Last updated</strong>: '+weather.updated+'</p>';
html += '<p><a href="'+weather.link+'">View forecast at Yahoo! Weather</a></p>';

$("#weather").html(html);
},
error: function(error) {
$("#weather").html('<p>'+error+'</p>');
}
});
});
</script>
</body>
</html>
13 changes: 0 additions & 13 deletions jquery.simpleWeather-2.3.min.js

This file was deleted.

13 changes: 13 additions & 0 deletions jquery.simpleWeather-2.4.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c8375fb

Please sign in to comment.