﻿(function($){     
     $(function()
     {
          $.getJSON("http://ws.geonames.org/weatherIcaoJSON?ICAO=KNAK&callback=?",
          function(data)
          {
               var temp = data.weatherObservation.temperature;
               temp = parseInt((temp * 1.8) + 32); //convert celsius to fahrenheit
               $("#weather a").html(temp+"&deg;");
          });
     
     });
})(jQuery);