It worked (I'm on Linux). I got this error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://en.wikipedia.org/w/api.php?action=query&titles=Main%20Page&prop=revisions&rvprop=content&format=json. (Reason: CORS header 'Access-Control-Allow-Origin' missing). (unknown)
It looks like it's the API blocking my request, but I don't understand why :worried:
:cookie: 287 | @skycoder01 |http://www.freecodecamp.com/skycoder01
$(document).ready(function() {
$("#button").click(function() {
$("#greeting").html("Hello World");
$.getJSON("https://en.wikipedia.org/w/api.php?action=query&titles=Main%20Page&prop=revisions&rvprop=content&format=json&origin=*", function(json) {
$("#output").html(JSON.stringify(json));
});
});
});
:cookie: 391 | @gbsimon87 |http://www.freecodecamp.com/gbsimon87
img-thumbnail
class instead: https://v4-alpha.getbootstrap.com/content/images/
:cookie: 288 | @skycoder01 |http://www.freecodecamp.com/skycoder01
:cookie: 289 | @skycoder01 |http://www.freecodecamp.com/skycoder01
haseebuchiha sends brownie points to @skycoder01 :sparkles: :thumbsup: :sparkles: