mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update card layouts
This commit is contained in:
parent
8f4f29888e
commit
bb38230c23
46 changed files with 1086 additions and 332 deletions
|
@ -97,6 +97,19 @@
|
|||
});
|
||||
}
|
||||
|
||||
function setDefault(page) {
|
||||
|
||||
var backdropContainer = $('.backdropContainer');
|
||||
|
||||
if (backdropContainer.length) {
|
||||
backdropContainer.css('backgroundImage', 'url(css/images/splash.jpg)');
|
||||
} else {
|
||||
$(document.body).prepend('<div class="backdropContainer" style="background-image:url(css/images/splash.jpg);top:0;"></div>');
|
||||
}
|
||||
|
||||
$(page).addClass('backdropPage staticBackdropPage');
|
||||
}
|
||||
|
||||
function clearBackdrop() {
|
||||
|
||||
$('.backdropContainer').css('backgroundImage', '');
|
||||
|
@ -213,7 +226,8 @@
|
|||
window.Backdrops = {
|
||||
|
||||
setBackdrops: setBackdrops,
|
||||
setBackdropUrl: setBackdropUrl
|
||||
setBackdropUrl: setBackdropUrl,
|
||||
setDefault: setDefault
|
||||
};
|
||||
|
||||
})(jQuery, document);
|
Loading…
Add table
Add a link
Reference in a new issue