1
0
Fork 0
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:
Luke Pulverenti 2015-09-04 12:20:54 -04:00
parent c7fa2299da
commit def595ff8a
26 changed files with 603 additions and 695 deletions

View file

@ -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;
}

View file

@ -299,7 +299,7 @@
function showPostPlayMenu(item) {
require(['jqmpopup'], function() {
require(['jqmpopup', 'jqmlistview'], function () {
$('.externalPlayerPostPlayFlyout').popup("close").remove();
var html = '<div data-role="popup" class="externalPlayerPostPlayFlyout" data-history="false" data-theme="a" data-dismissible="false">';
@ -410,7 +410,7 @@
function showMenuForItem(item, players) {
require(['jqmpopup'], function () {
require(['jqmpopup', 'jqmlistview'], function () {
closePlayMenu();
var html = '<div data-role="popup" class="externalPlayerFlyout" data-theme="a" data-dismissible="false">';

View file

@ -1043,6 +1043,8 @@
getListViewHtml: function (options) {
require(['jqmlistview']);
var outerHtml = "";
outerHtml += '<ul data-role="listview" class="itemsListview">';

View file

@ -40,7 +40,6 @@
html += '<div class="homePageSection">';
html += '<h1>' + startDateText + '</h1>';
//html += '<ul data-role="listview" data-split-icon="delete">';
html += '<div class="paperList">';
index = startDateText;
}

View file

@ -2108,6 +2108,11 @@ var AppInfo = {};
return {};
});
define("jqmlistview", ["thirdparty/jquerymobile-1.4.5/jqm.listview"], function () {
Dashboard.importCss('thirdparty/jquerymobile-1.4.5/jqm.listview.css');
return {};
});
define("hammer", ["bower_components/hammerjs/hammer.min"], function (Hammer) {
return Hammer;
});
@ -2188,6 +2193,7 @@ var AppInfo = {};
if (newHtml.indexOf('type-interior') != -1) {
depends.push('jqmicons');
depends.push('jqmpopup');
depends.push('jqmlistview');
}
require(depends, function () {
@ -2280,6 +2286,16 @@ $(document).on('pagecreate', ".page", function () {
current = newTheme;
}
var docElem = document.documentElement;
if (current == 'a') {
docElem.classList.add('background-theme-a');
docElem.classList.remove('background-theme-b');
} else {
docElem.classList.add('background-theme-b');
docElem.classList.remove('background-theme-a');
}
if (current != 'a' && !$.browser.mobile) {
document.body.classList.add('darkScrollbars');
} else {