﻿(function (a) { weather = function () { function c(b) { a("div.weather div.item").hide(); b.fadeOut("fast", function (b) { return function () { b.fadeIn("slow", function () { var d = a("div.weather div.item:last").attr("number"); if (a(this).attr("number") == d) { setTimeout(function () { c(a("div.weather div.item:first")) }, 5e3) } else { setTimeout(function () { c(a(b.next())) }, 5e3) } }) } } (b)) } function b() { a.ajax({ type: "GET", url: "http://www.goweruk.com/weather.ashx", async: false, success: function (b) { var c = 1; a(b).find("item").each(function (b) { var d = a(this).find("title").text(); var e = d.split(":")[0]; var f = d.split(",")[0].split(":")[1]; var g = d.split(",")[1].replace(" Temp", ""); var h = d.split(",")[2].replace(" Temp", ""); var j = ""; j += "<div class='item' number='" + c + "'>"; j += "<p class='day'>" + e + "</p>"; j += "<p class='cast'>" + f + "</p>"; j += "<p class='max'>" + g + "</p>"; j += "<p class='min'>" + h + "</p>"; j += "</div>"; a("div.weather").append(j); c++ }) } }) } b(); var d = a("div.weather > div.item:first"); c(d) } })(jQuery)
