Last active
September 12, 2016 00:35
-
-
Save dayne/74585b8c6c1f45a78bb4e89c9c6feb2e to your computer and use it in GitHub Desktop.
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
$(document).ready(function() { | |
alert("load!"); | |
latest(); | |
}) | |
function latest() | |
{ | |
alert("testing"); | |
$.ajax({ | |
url: "/latest_image" | |
}).done(function(data) { | |
$('#picture-output').append('<img src="'+file+'">'); | |
setTimeout(latest, 5000); | |
};) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment