1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update theme

This commit is contained in:
Luke Pulverenti 2015-10-13 02:31:20 -04:00
parent 1ac9bfe5aa
commit 4670ba6fbf
7 changed files with 66 additions and 5 deletions

View file

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