Created
June 3, 2014 10:43
-
-
Save PMaynard/8859d4478d2c20dd0ddf to your computer and use it in GitHub Desktop.
Quote Getter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* {"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