mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
commit
2f8682c5ee
1 changed files with 13 additions and 6 deletions
|
@ -21,11 +21,7 @@
|
||||||
setBackdrop(page);
|
setBackdrop(page);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lastSound == 0) {
|
playThemeMusic();
|
||||||
//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');
|
|
||||||
}
|
|
||||||
|
|
||||||
addSnowflakes();
|
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() {
|
function destroyTheme() {
|
||||||
|
|
||||||
document.documentElement.classList.remove('christmas');
|
document.documentElement.classList.remove('christmas');
|
||||||
|
@ -85,7 +91,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var holidayThemeKey = 'holidaytheme4';
|
var holidayThemeKey = 'holidaytheme5';
|
||||||
function getHolidayTheme() {
|
function getHolidayTheme() {
|
||||||
return appStorage.getItem(holidayThemeKey);
|
return appStorage.getItem(holidayThemeKey);
|
||||||
}
|
}
|
||||||
|
@ -93,6 +99,7 @@
|
||||||
function setHolidayTheme(value) {
|
function setHolidayTheme(value) {
|
||||||
appStorage.setItem(holidayThemeKey, value);
|
appStorage.setItem(holidayThemeKey, value);
|
||||||
setBodyClass();
|
setBodyClass();
|
||||||
|
playThemeMusic();
|
||||||
}
|
}
|
||||||
|
|
||||||
function setBodyClass() {
|
function setBodyClass() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue