Create a gist now

Instantly share code, notes, and snippets.

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