JSFiddle - React, Tailwind, and code Playground

by schlomm

HTML

<h2>Please open your console to see the response.</h2>

JavaScript

var query = 'http://ehv-design.nl/eindopdracht/api.php?method=complete'
var url = 'http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20json%20where%20url%3D%22' + encodeURIComponent(query) + '%22&format=json&callback=?'

$.getJSON(url, function (res) {
    console.log(res);
})