img count

This commit is contained in:
reality 2013-04-15 21:55:50 +00:00
parent 3a6e86d7ad
commit 37a37c97b9

View File

@ -6,7 +6,10 @@ html(lang='en')
link(rel="stylesheet", href="/imgurr.css")
title random imgur
script
var count = 0;
function wat() {
count += 1;
$('#loading').text('Loading image ' + count);
$('#loading').show();
$('#image').load(function(){$('#loading').hide(); console.log('loaded')});
$.get("/api/imgur/getRandomImage", function(d) {$('#image').attr('src', d.data[0])}, "json");