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
1ac9bfe5aa
commit
4670ba6fbf
7 changed files with 66 additions and 5 deletions
|
@ -1935,6 +1935,21 @@ var AppInfo = {};
|
|||
}
|
||||
}
|
||||
|
||||
function loadTheme() {
|
||||
|
||||
var name = getParameterByName('theme');
|
||||
if (name) {
|
||||
require(['themes/' + name + '/theme']);
|
||||
return;
|
||||
}
|
||||
|
||||
var date = new Date();
|
||||
if (date.getMonth() == 9 && date.getDate() == 31) {
|
||||
require(['themes/halloween/theme']);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
function onDocumentReady() {
|
||||
|
||||
// Do these now to prevent a flash of content
|
||||
|
@ -1947,6 +1962,8 @@ var AppInfo = {};
|
|||
}
|
||||
}
|
||||
|
||||
loadTheme();
|
||||
|
||||
if ($.browser.safari && $.browser.mobile) {
|
||||
initFastClick();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue