Skip to content

Instantly share code, notes, and snippets.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" charset="utf-8"></script>
<script src="<?php echo esc_url( home_url( '/' ) ); ?>/jquery.simpleWeather.js" charset="utf-8"></script>
<script type="text/javascript">
$(function() {
$.simpleWeather({
location: 'london, united kingdom',
unit: 'c',
success: function(weather) {
html = '<h2>'+weather.city+', '+weather.region+'</h2>';