Skip to content

Instantly share code, notes, and snippets.

@liketaurus
Last active December 17, 2015 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liketaurus/48e7746c470232bdb70b to your computer and use it in GitHub Desktop.
Save liketaurus/48e7746c470232bdb70b to your computer and use it in GitHub Desktop.
How to get Weather Forecast with jQuery Dialog and forecast.io
//Read more here: http://blog.forecast.io/forecast-embeds/
<div id="dialog-message" title="Current Weather" style="display:none">
<iframe id="forecast_embed" frameborder="0" height="245" style="width:100%"
src="http://forecast.io/embed/#lat=50.450100&lon=30.523400&name=Kyiv&units=uk">
</iframe>
</div>
...
<span class="float_right" id="weather" onclick="{
$('#dialog-message').dialog({width: 600,modal:true,buttons:{Ok:function() {$(this).dialog('close');}}});
}">&#32;,&#32;N/A </span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment