Created
November 22, 2012 14:19
-
-
Save bigandy/4131396 to your computer and use it in GitHub Desktop.
JSON Milk Check
This file contains hidden or 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
window.setInterval(function(){ | |
jQuery.getJSON("/api/milk/single_milk/?dev=1",function(data) { | |
milkAmount = data['result']['milk-amount']; | |
console.log(milkAmount); | |
jQuery('#list').html('<h1>'+milkAmount+'</h1>'); | |
}); | |
}, 3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment