From 72bb395127631a236f56679ff791ef19f0726020 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 28 Jun 2011 01:20:39 +0530 Subject: [PATCH] fetch 320px posters and shrink them in css to get slightly better quality --- radia.css | 1 + radia.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/radia.css b/radia.css index 5cdbc2d..1d685c1 100644 --- a/radia.css +++ b/radia.css @@ -24,6 +24,7 @@ body { border-radius: 8px; -moz-border-radius: 8px; -webkit-border-radius: 8px; + width: 120px; } text { diff --git a/radia.js b/radia.js index b8ddce2..7a4f03d 100644 --- a/radia.js +++ b/radia.js @@ -1,6 +1,6 @@ // var R; function supportsSvg() { - return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape", "1.0") + return !!document.createElementNS && !!document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect; } @@ -215,7 +215,7 @@ function getPostersHTML(padma_ids) { var html = ''; for (var i=0; ilimit) { break; } - var posterLink = "http://pad.ma/" + padma_ids[i] + "/poster.png"; + var posterLink = "http://pad.ma/" + padma_ids[i] + "/poster.320.png"; html += ""; } return html;