Last active
December 17, 2015 16:18
-
-
Save liketaurus/48e7746c470232bdb70b to your computer and use it in GitHub Desktop.
How to get Weather Forecast with jQuery Dialog and forecast.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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');}}}); | |
}"> , N/A </span> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment