Skip to content

Instantly share code, notes, and snippets.

@dayne
Last active September 12, 2016 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dayne/74585b8c6c1f45a78bb4e89c9c6feb2e to your computer and use it in GitHub Desktop.
Save dayne/74585b8c6c1f45a78bb4e89c9c6feb2e to your computer and use it in GitHub Desktop.
$(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