mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update theme
This commit is contained in:
parent
8499b70512
commit
e81e43a19d
1 changed files with 7 additions and 8 deletions
|
@ -1,4 +1,5 @@
|
||||||
define(['appSettings', 'backdrop', 'browser', 'globalize', 'css!./style.css', 'paper-icon-button-light'], function (appSettings, backdrop, browser, globalize) {
|
define(['appSettings', 'backdrop', 'browser', 'globalize', 'require', 'paper-icon-button-light'], function (appSettings, backdrop, browser, globalize, require) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
var lastSound = 0;
|
var lastSound = 0;
|
||||||
var iconCreated;
|
var iconCreated;
|
||||||
|
@ -20,6 +21,8 @@
|
||||||
|
|
||||||
if (!browser.mobile) {
|
if (!browser.mobile) {
|
||||||
|
|
||||||
|
require(['css!./style.css']);
|
||||||
|
|
||||||
if (!page.classList.contains('itemDetailPage')) {
|
if (!page.classList.contains('itemDetailPage')) {
|
||||||
backdrop.setBackdrop('themes/halloween/bg.jpg');
|
backdrop.setBackdrop('themes/halloween/bg.jpg');
|
||||||
}
|
}
|
||||||
|
@ -29,9 +32,9 @@
|
||||||
} else if ((new Date().getTime() - lastSound) > 30000) {
|
} else if ((new Date().getTime() - lastSound) > 30000) {
|
||||||
playSound('http://github.com/MediaBrowser/Emby.Resources/raw/master/themes/halloween/howl.wav');
|
playSound('http://github.com/MediaBrowser/Emby.Resources/raw/master/themes/halloween/howl.wav');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
addIcon();
|
addIcon();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,17 +100,13 @@
|
||||||
currentSound.stop();
|
currentSound.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
Dashboard.removeStylesheet('themes/halloween/style.css');
|
|
||||||
backdrop.clear();
|
backdrop.clear();
|
||||||
appSettings.set(cancelKey, cancelValue);
|
appSettings.set(cancelKey, cancelValue);
|
||||||
|
window.location.reload(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
pageClassOn('pageshow', "libraryPage", onPageShow);
|
pageClassOn('pageshow', "libraryPage", onPageShow);
|
||||||
|
|
||||||
//if ($($.mobile.activePage)[0].classList.contains('libraryPage')) {
|
|
||||||
// onPageShow.call($($.mobile.activePage)[0]);
|
|
||||||
//}
|
|
||||||
|
|
||||||
function playSound(path, volume) {
|
function playSound(path, volume) {
|
||||||
|
|
||||||
require(['howler'], function (howler) {
|
require(['howler'], function (howler) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue