mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix now playing background
This commit is contained in:
parent
c7fa2299da
commit
def595ff8a
26 changed files with 603 additions and 695 deletions
|
@ -1,5 +1,7 @@
|
|||
(function ($, document) {
|
||||
|
||||
var pageBackgroundCreated;
|
||||
|
||||
function getElement() {
|
||||
|
||||
//var elem = $('.backdropContainer');
|
||||
|
@ -12,6 +14,14 @@
|
|||
var elem = document.documentElement;
|
||||
|
||||
elem.classList.add('backdropContainer');
|
||||
|
||||
if (!pageBackgroundCreated) {
|
||||
pageBackgroundCreated = true;
|
||||
var div = document.createElement('div');
|
||||
div.classList.add('pageBackground');
|
||||
document.body.insertBefore(div, document.body.firstChild);
|
||||
}
|
||||
|
||||
return elem;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue