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

Merge pull request #1343 from MediaBrowser/master

update theme
This commit is contained in:
Luke 2015-12-20 11:19:18 -05:00
commit 2f8682c5ee

View file

@ -21,11 +21,7 @@
setBackdrop(page);
}
if (lastSound == 0) {
//playSound('http://github.com/MediaBrowser/Emby.Resources/raw/master/themes/halloween/monsterparadefade.mp3', .1);
} else if ((new Date().getTime() - lastSound) > 30000) {
playSound('http://github.com/MediaBrowser/Emby.Resources/raw/master/themes/holiday/sleighbells.wav');
}
playThemeMusic();
addSnowflakes();
@ -35,6 +31,16 @@
}
}
function playThemeMusic() {
if (lastSound == 0) {
if (getHolidayTheme() == 'christmas') {
playSound('https://github.com/MediaBrowser/Emby.Resources/raw/master/themes/holiday/christmas.wav', .1);
}
} else if (getHolidayTheme() != 'off' && (new Date().getTime() - lastSound) > 30000) {
playSound('https://github.com/MediaBrowser/Emby.Resources/raw/master/themes/holiday/sleighbells.wav');
}
}
function destroyTheme() {
document.documentElement.classList.remove('christmas');
@ -85,7 +91,7 @@
}
}
var holidayThemeKey = 'holidaytheme4';
var holidayThemeKey = 'holidaytheme5';
function getHolidayTheme() {
return appStorage.getItem(holidayThemeKey);
}
@ -93,6 +99,7 @@
function setHolidayTheme(value) {
appStorage.setItem(holidayThemeKey, value);
setBodyClass();
playThemeMusic();
}
function setBodyClass() {