From c1cd55151fdea2bd80e27a6a9dfc905a243dd379 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 11 Nov 2015 13:25:35 -0800 Subject: Fetch remote image files and store locally --- public/assets/img/logos/yummyyards.png | Bin 0 -> 22968 bytes public/js/calculator.coffee | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 public/assets/img/logos/yummyyards.png (limited to 'public') diff --git a/public/assets/img/logos/yummyyards.png b/public/assets/img/logos/yummyyards.png new file mode 100644 index 00000000..e8f59c9f Binary files /dev/null and b/public/assets/img/logos/yummyyards.png differ diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee index cc2dcece..cc45cae5 100644 --- a/public/js/calculator.coffee +++ b/public/js/calculator.coffee @@ -59,7 +59,9 @@ setup = -> $('#title').html("#{g.user.title}").show() if g.user.logo - $('#logo').attr('src', g.user.logo).show() + ext = g.user.logo.substr(g.user.logo.length - 3) + src = "/assets/img/logos/#{g.user.username}.#{ext}" + $('#logo').attr('src', src).show() getAddress() -- cgit v1.2.3