Skip to content

Instantly share code, notes, and snippets.

@PMaynard
Created June 3, 2014 10:43
Show Gist options
  • Save PMaynard/8859d4478d2c20dd0ddf to your computer and use it in GitHub Desktop.
Save PMaynard/8859d4478d2c20dd0ddf to your computer and use it in GitHub Desktop.
Quote Getter
/* {"quote": "\"In theory, there is no difference between theory and practice. But, in practice, there is.\"", "author": "Jan L. A. van de Snepscheut"} */
$.get('<URL-TO-Quote>', function (data) {
$('#quote').text(data.quote);
$('#quote-author').text(data.author);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment