forked from GitHub/dbot
img count
This commit is contained in:
parent
3a6e86d7ad
commit
37a37c97b9
@ -6,7 +6,10 @@ html(lang='en')
|
|||||||
link(rel="stylesheet", href="/imgurr.css")
|
link(rel="stylesheet", href="/imgurr.css")
|
||||||
title random imgur
|
title random imgur
|
||||||
script
|
script
|
||||||
|
var count = 0;
|
||||||
function wat() {
|
function wat() {
|
||||||
|
count += 1;
|
||||||
|
$('#loading').text('Loading image ' + count);
|
||||||
$('#loading').show();
|
$('#loading').show();
|
||||||
$('#image').load(function(){$('#loading').hide(); console.log('loaded')});
|
$('#image').load(function(){$('#loading').hide(); console.log('loaded')});
|
||||||
$.get("/api/imgur/getRandomImage", function(d) {$('#image').attr('src', d.data[0])}, "json");
|
$.get("/api/imgur/getRandomImage", function(d) {$('#image').attr('src', d.data[0])}, "json");
|
||||||
|
Loading…
Reference in New Issue
Block a user