From 528fffce52c0ef50821690b44429c3f0ae1c5053 Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 28 Mar 2014 00:12:18 -0500 Subject: [PATCH] lame code to show prank pets on homepage :P --- app/assets/javascripts/outfits/new.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/outfits/new.js b/app/assets/javascripts/outfits/new.js index 209dcbf6..66de56b1 100644 --- a/app/assets/javascripts/outfits/new.js +++ b/app/assets/javascripts/outfits/new.js @@ -57,7 +57,13 @@ Preview.Job = function (key, base) { job.loading = false; function getImageSrc() { - return petImage(base + '/' + key, quality); + if (key.substr(0, 3) === 'a:-') { + // lol lazy code for prank image :P + return "http://swfimages.impress.openneo.net" + + "/biology/000/000/0-2/" + key.substr(2) + "/300x300.png"; + } else { + return petImage(base + '/' + key, quality); + } } function load() {