fetch 320px posters and shrink them in css to get slightly better quality

This commit is contained in:
Sanj 2011-06-28 01:20:39 +05:30
parent c450d83b29
commit 72bb395127
2 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@ body {
border-radius: 8px;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
width: 120px;
}
text {

View File

@ -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; i<padma_ids.length; i++) {
if (i>limit) { break; }
var posterLink = "http://pad.ma/" + padma_ids[i] + "/poster.png";
var posterLink = "http://pad.ma/" + padma_ids[i] + "/poster.320.png";
html += "<img src='" + posterLink + "' />";
}
return html;