fetch 320px posters and shrink them in css to get slightly better quality
This commit is contained in:
parent
c450d83b29
commit
72bb395127
|
@ -24,6 +24,7 @@ body {
|
|||
border-radius: 8px;
|
||||
-moz-border-radius: 8px;
|
||||
-webkit-border-radius: 8px;
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
text {
|
||||
|
|
4
radia.js
4
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; 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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user