1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update page background

This commit is contained in:
Luke Pulverenti 2015-09-04 16:32:20 -04:00
parent 6d3000e316
commit 6b21f2fbd0
6 changed files with 972 additions and 22 deletions

View file

@ -1136,17 +1136,23 @@
var minLazyIndex = 16;
if (options.smallIcon) {
if (index < minLazyIndex) {
html += '<div class="listviewImage small" style="background-image:url(\'' + imgUrl + '\');"></div>';
html += '<div class="listviewImage small" style="background-image:url(\'' + imgUrl + '\');" item-icon></div>';
} else {
html += '<div class="listviewImage lazy small" data-src="' + imgUrl + '"></div>';
html += '<div class="listviewImage lazy small" data-src="' + imgUrl + '" item-icon></div>';
}
} else {
if (index < minLazyIndex) {
html += '<div class="listviewImage" style="background-image:url(\'' + imgUrl + '\');"></div>';
html += '<div class="listviewImage" style="background-image:url(\'' + imgUrl + '\');" item-icon></div>';
} else {
html += '<div class="listviewImage lazy" data-src="' + imgUrl + '"></div>';
html += '<div class="listviewImage lazy" data-src="' + imgUrl + '" item-icon></div>';
}
}
} else {
if (options.smallIcon) {
html += '<div class="listviewImage small" item-icon></div>';
} else {
html += '<div class="listviewImage" item-icon></div>';
}
}
var textlines = [];