JSFiddle - React, Tailwind, and code Playground
by Anas Zaki
HTML
test
JavaScript
var url = 'http://magicseaweed.com/api/e2hkRF25HTD1WPb1rm55m0NE848IY7u3/forecast/?spot_id=10'
$.ajax({
dataType: "jsonp",
url: url
}).done(function(data) {
console.log(data);
// The result is an array, so loop over each one
$.each(data, function() {
// Do something with the item, e.g:
var diff = this.swell.maxBreakingHeight - this.swell.minBreakingHeight;
console.log(diff);
});
});