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;
|
border-radius: 8px;
|
||||||
-moz-border-radius: 8px;
|
-moz-border-radius: 8px;
|
||||||
-webkit-border-radius: 8px;
|
-webkit-border-radius: 8px;
|
||||||
|
width: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
text {
|
text {
|
||||||
|
|
4
radia.js
4
radia.js
|
@ -1,6 +1,6 @@
|
||||||
// var R;
|
// var R;
|
||||||
function supportsSvg() {
|
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 = '';
|
var html = '';
|
||||||
for (var i=0; i<padma_ids.length; i++) {
|
for (var i=0; i<padma_ids.length; i++) {
|
||||||
if (i>limit) { break; }
|
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 + "' />";
|
html += "<img src='" + posterLink + "' />";
|
||||||
}
|
}
|
||||||
return html;
|
return html;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user