Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // joke api
- $("#joke").click(function () {
- console.log("testing joke api");
- var joke_url = "https://official-joke-api.appspot.com/random_joke";
- $.getJSON(joke_url, function (data) {
- $("#exampleModalLabel").text(data.setup);
- $("#punchline").text(data.punchline);
- console.log(data);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement