3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-18 00:22:35 +01:00
dbot/views/imgur/imgurr.jade

16 lines
436 B
Plaintext
Raw Normal View History

2013-04-15 03:10:29 +02:00
!!! 5
html(lang='en')
head
meta(charset='utf-8')
script(type="text/javascript", src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js")
title random imgur
script
function wat() {
$.get("/api/imgur/getRandomImage", function(d) {$('#image').attr('src', d.data[0])}, "json");
};
$(wat());
$(document).keypress(wat);
body
div#container
img#image(style='width: 100%')