diff --git a/Jellyfin.Plugin.Seasonals/Web/autumn.js b/Jellyfin.Plugin.Seasonals/Web/autumn.js index 2c934b7..77233a5 100644 --- a/Jellyfin.Plugin.Seasonals/Web/autumn.js +++ b/Jellyfin.Plugin.Seasonals/Web/autumn.js @@ -1,11 +1,11 @@ const config = window.SeasonalsPluginConfig?.Autumn || {}; -const leaves = config.EnableAutumn !== undefined ? config.EnableAutumn : true; // enable/disable leaves +const leaves = config.EnableAutumn !== undefined ? config.EnableAutumn : true; // enable/disable autumn const randomLeaves = config.EnableRandomLeaves !== undefined ? config.EnableRandomLeaves : true; // enable random leaves -const randomLeavesMobile = config.EnableRandomLeavesMobile !== undefined ? config.EnableRandomLeavesMobile : false; // enable random leaves on mobile devices (Warning: High values may affect performance) -const enableDiffrentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different duration for the random leaves -const enableRotation = config.EnableRotation !== undefined ? config.EnableRotation : false; // enable/disable leaf rotation -const leafCount = config.LeafCount || 25; // count of random extra leaves +const randomLeavesMobile = config.EnableRandomLeavesMobile !== undefined ? config.EnableRandomLeavesMobile : false; // enable random leaves on mobile +const enableDiffrentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations +const enableRotation = config.EnableRotation !== undefined ? config.EnableRotation : false; // enable/disable rotation +const leafCount = config.LeafCount !== undefined ? config.LeafCount : 25; // count of random extra leaves const images = [ "../Seasonals/Resources/autumn_images/acorn1.png", diff --git a/Jellyfin.Plugin.Seasonals/Web/carnival.js b/Jellyfin.Plugin.Seasonals/Web/carnival.js index d548285..f879b93 100644 --- a/Jellyfin.Plugin.Seasonals/Web/carnival.js +++ b/Jellyfin.Plugin.Seasonals/Web/carnival.js @@ -1,11 +1,11 @@ const config = window.SeasonalsPluginConfig?.Carnival || {}; -const carnival = config.EnableCarnival !== undefined ? config.EnableCarnival : true; // Enable/disable carnival -const randomCarnival = config.EnableRandomCarnival !== undefined ? config.EnableRandomCarnival : true; // Enable random carnival objects -const randomCarnivalMobile = config.EnableRandomCarnivalMobile !== undefined ? config.EnableRandomCarnivalMobile : false; // Enable random carnival objects on mobile -const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // Randomize falling and flutter speeds -const enableSway = config.EnableCarnivalSway !== undefined ? config.EnableCarnivalSway : true; // Enable side-to-side sway animation -const carnivalCount = config.ObjectCount || 120; // Number of confetti pieces to spawn +const carnival = config.EnableCarnival !== undefined ? config.EnableCarnival : true; // enable/disable carnival +const randomCarnival = config.EnableRandomCarnival !== undefined ? config.EnableRandomCarnival : true; // enable random carnival +const randomCarnivalMobile = config.EnableRandomCarnivalMobile !== undefined ? config.EnableRandomCarnivalMobile : false; // enable random carnival on mobile +const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations +const enableSway = config.EnableCarnivalSway !== undefined ? config.EnableCarnivalSway : true; // enable/disable carnivalsway +const carnivalCount = config.ObjectCount !== undefined ? config.ObjectCount : 120; // Number of confetti pieces to spawn const confettiColors = [ '#fce18a', '#ff726d', '#b48def', '#f4306d', diff --git a/Jellyfin.Plugin.Seasonals/Web/cherryblossom.js b/Jellyfin.Plugin.Seasonals/Web/cherryblossom.js index 8e4369d..0a478a6 100644 --- a/Jellyfin.Plugin.Seasonals/Web/cherryblossom.js +++ b/Jellyfin.Plugin.Seasonals/Web/cherryblossom.js @@ -1,10 +1,10 @@ const config = window.SeasonalsPluginConfig?.CherryBlossom || {}; -const cherryBlossom = config.EnableCherryBlossom !== undefined ? config.EnableCherryBlossom : true; -const petalCount = config.PetalCount || 25; -const randomCherryBlossom = config.EnableRandomCherryBlossom !== undefined ? config.EnableRandomCherryBlossom : true; -const randomCherryBlossomMobile = config.EnableRandomCherryBlossomMobile !== undefined ? config.EnableRandomCherryBlossomMobile : false; -const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; +const cherryBlossom = config.EnableCherryBlossom !== undefined ? config.EnableCherryBlossom : true; // enable/disable cherryblossom +const petalCount = config.PetalCount !== undefined ? config.PetalCount : 25; // count of petal +const randomCherryBlossom = config.EnableRandomCherryBlossom !== undefined ? config.EnableRandomCherryBlossom : true; // enable random cherryblossom +const randomCherryBlossomMobile = config.EnableRandomCherryBlossomMobile !== undefined ? config.EnableRandomCherryBlossomMobile : false; // enable random cherryblossom on mobile +const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations let msgPrinted = false; diff --git a/Jellyfin.Plugin.Seasonals/Web/christmas.js b/Jellyfin.Plugin.Seasonals/Web/christmas.js index 43899a9..97df486 100644 --- a/Jellyfin.Plugin.Seasonals/Web/christmas.js +++ b/Jellyfin.Plugin.Seasonals/Web/christmas.js @@ -1,10 +1,10 @@ const config = window.SeasonalsPluginConfig?.Christmas || {}; const christmas = config.EnableChristmas !== undefined ? config.EnableChristmas : true; // enable/disable christmas -const randomChristmas = config.EnableRandomChristmas !== undefined ? config.EnableRandomChristmas : true; // enable random Christmas -const randomChristmasMobile = config.EnableRandomChristmasMobile !== undefined ? config.EnableRandomChristmasMobile : false; // enable random Christmas on mobile devices (Warning: High values may affect performance) -const enableDiffrentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different duration for the random Christmas symbols -const christmasCount = config.SymbolCount || 25; // count of random extra christmas +const randomChristmas = config.EnableRandomChristmas !== undefined ? config.EnableRandomChristmas : true; // enable random christmas +const randomChristmasMobile = config.EnableRandomChristmasMobile !== undefined ? config.EnableRandomChristmasMobile : false; // enable random christmas on mobile +const enableDiffrentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations +const christmasCount = config.SymbolCount !== undefined ? config.SymbolCount : 25; // count of symbol // Array of christmas characters const christmasSymbols = ['❆', '🎁', '❄️', '🎁', '🎅', '🎊', '🎁', '🎉']; diff --git a/Jellyfin.Plugin.Seasonals/Web/earthday.js b/Jellyfin.Plugin.Seasonals/Web/earthday.js index d3e5f8c..b514a89 100644 --- a/Jellyfin.Plugin.Seasonals/Web/earthday.js +++ b/Jellyfin.Plugin.Seasonals/Web/earthday.js @@ -1,7 +1,7 @@ const config = window.SeasonalsPluginConfig?.EarthDay || {}; -const enabled = config.EnableEarthDay !== undefined ? config.EnableEarthDay : true; -const vineCount = config.VineCount || 4; +const enabled = config.EnableEarthDay !== undefined ? config.EnableEarthDay : true; // enable/disable earthday +const vineCount = config.VineCount !== undefined ? config.VineCount : 4; // count of vine const flowerColors = ['#FF69B4', '#FFD700', '#87CEFA', '#FF4500', '#BA55D3', '#FFA500', '#FF1493']; diff --git a/Jellyfin.Plugin.Seasonals/Web/easter.js b/Jellyfin.Plugin.Seasonals/Web/easter.js index e46ee3d..a637793 100644 --- a/Jellyfin.Plugin.Seasonals/Web/easter.js +++ b/Jellyfin.Plugin.Seasonals/Web/easter.js @@ -1,10 +1,10 @@ const config = window.SeasonalsPluginConfig?.Easter || {}; -const easter = config.EnableEaster !== undefined ? config.EnableEaster : true; -const enableBunny = config.EnableBunny !== undefined ? config.EnableBunny : true; -const minBunnyRestTime = config.MinBunnyRestTime || 2000; -const maxBunnyRestTime = config.MaxBunnyRestTime || 5000; -const eggCount = config.EggCount || 15; +const easter = config.EnableEaster !== undefined ? config.EnableEaster : true; // enable/disable easter +const enableBunny = config.EnableBunny !== undefined ? config.EnableBunny : true; // enable/disable bunny +const minBunnyRestTime = config.MinBunnyRestTime !== undefined ? config.MinBunnyRestTime : 2000; // timing parameter +const maxBunnyRestTime = config.MaxBunnyRestTime !== undefined ? config.MaxBunnyRestTime : 5000; // timing parameter +const eggCount = config.EggCount !== undefined ? config.EggCount : 15; // count of egg /* MARK: Bunny movement config */ const jumpDistanceVw = 5; // Distance in vw the bunny covers per jump diff --git a/Jellyfin.Plugin.Seasonals/Web/eid.js b/Jellyfin.Plugin.Seasonals/Web/eid.js index e20f046..51a132f 100644 --- a/Jellyfin.Plugin.Seasonals/Web/eid.js +++ b/Jellyfin.Plugin.Seasonals/Web/eid.js @@ -1,7 +1,7 @@ const config = window.SeasonalsPluginConfig?.Eid || {}; -const eid = config.EnableEid !== undefined ? config.EnableEid : true; -const lanternCount = config.LanternCount !== undefined ? config.LanternCount : 8; -const lanternCountMobile = config.LanternCountMobile !== undefined ? config.LanternCountMobile : 3; +const eid = config.EnableEid !== undefined ? config.EnableEid : true; // enable/disable eid +const lanternCount = config.LanternCount !== undefined ? config.LanternCount : 8; // count of lantern +const lanternCountMobile = config.LanternCountMobile !== undefined ? config.LanternCountMobile : 3; // count of lantern on mobile const eidSymbols = ['🌙', '⭐', '✨']; diff --git a/Jellyfin.Plugin.Seasonals/Web/eurovision.js b/Jellyfin.Plugin.Seasonals/Web/eurovision.js index c0e487c..d244bf6 100644 --- a/Jellyfin.Plugin.Seasonals/Web/eurovision.js +++ b/Jellyfin.Plugin.Seasonals/Web/eurovision.js @@ -1,11 +1,11 @@ const config = window.SeasonalsPluginConfig?.Eurovision || {}; -const enabled = config.EnableEurovision !== undefined ? config.EnableEurovision : true; -const elementCount = config.SymbolCount || 25; -const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; -const enableColorfulNotes = config.EnableColorfulNotes !== undefined ? config.EnableColorfulNotes : true; -const eurovisionColorsStr = config.EurovisionColors || '#ff0026ff, #17a6ffff, #32d432ff, #FFD700, #f0821bff, #f826f8ff'; -const glowSize = config.EurovisionGlowSize !== undefined ? config.EurovisionGlowSize : 2; +const enabled = config.EnableEurovision !== undefined ? config.EnableEurovision : true; // enable/disable eurovision +const elementCount = config.SymbolCount !== undefined ? config.SymbolCount : 25; // count of notes +const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations +const enableColorfulNotes = config.EnableColorfulNotes !== undefined ? config.EnableColorfulNotes : true; // enable/disable colorful notes +const eurovisionColorsStr = config.EurovisionColors !== undefined ? config.EurovisionColors : '#ff0026ff, #17a6ffff, #32d432ff, #FFD700, #f0821bff, #f826f8ff'; // colors to use +const glowSize = config.EurovisionGlowSize !== undefined ? config.EurovisionGlowSize : 2; // size of eurovision glow let msgPrinted = false; diff --git a/Jellyfin.Plugin.Seasonals/Web/filmnoir.js b/Jellyfin.Plugin.Seasonals/Web/filmnoir.js index febd3e6..2adbfaf 100644 --- a/Jellyfin.Plugin.Seasonals/Web/filmnoir.js +++ b/Jellyfin.Plugin.Seasonals/Web/filmnoir.js @@ -1,5 +1,5 @@ const config = window.SeasonalsPluginConfig?.FilmNoir || {}; -const filmnoir = config.EnableFilmNoir !== undefined ? config.EnableFilmNoir : true; +const filmnoir = config.EnableFilmNoir !== undefined ? config.EnableFilmNoir : true; // enable/disable filmnoir let msgPrinted = false; diff --git a/Jellyfin.Plugin.Seasonals/Web/fireworks.js b/Jellyfin.Plugin.Seasonals/Web/fireworks.js index 43ae998..052437d 100644 --- a/Jellyfin.Plugin.Seasonals/Web/fireworks.js +++ b/Jellyfin.Plugin.Seasonals/Web/fireworks.js @@ -2,10 +2,10 @@ const config = window.SeasonalsPluginConfig?.Fireworks || {}; const fireworks = config.EnableFireworks !== undefined ? config.EnableFireworks : true; // enable/disable fireworks const scrollFireworks = config.ScrollFireworks !== undefined ? config.ScrollFireworks : true; // enable fireworks to scroll with page content -const particlesPerFirework = config.ParticleCount || 50; // count of particles per firework (Warning: High values may affect performance) -const minFireworks = config.MinFireworks || 3; // minimum number of simultaneous fireworks -const maxFireworks = config.MaxFireworks || 6; // maximum number of simultaneous fireworks -const intervalOfFireworks = config.LaunchInterval || 3200; // interval for the fireworks in milliseconds +const particlesPerFirework = config.ParticleCount !== undefined ? config.ParticleCount : 50; // count of particles per firework +const minFireworks = config.MinFireworks !== undefined ? config.MinFireworks : 3; // minimum number of simultaneous fireworks +const maxFireworks = config.MaxFireworks !== undefined ? config.MaxFireworks : 6; // maximum number of simultaneous fireworks +const intervalOfFireworks = config.LaunchInterval !== undefined ? config.LaunchInterval : 3200; // interval for the fireworks in milliseconds // array of color palettes for the fireworks const colorPalettes = [ diff --git a/Jellyfin.Plugin.Seasonals/Web/friday13.js b/Jellyfin.Plugin.Seasonals/Web/friday13.js index 0f3d32e..5256717 100644 --- a/Jellyfin.Plugin.Seasonals/Web/friday13.js +++ b/Jellyfin.Plugin.Seasonals/Web/friday13.js @@ -1,5 +1,5 @@ const config = window.SeasonalsPluginConfig?.Friday13 || {}; -const friday13 = config.EnableFriday13 !== undefined ? config.EnableFriday13 : true; +const friday13 = config.EnableFriday13 !== undefined ? config.EnableFriday13 : true; // enable/disable friday13 let msgPrinted = false; diff --git a/Jellyfin.Plugin.Seasonals/Web/frost.js b/Jellyfin.Plugin.Seasonals/Web/frost.js index dd5e6f9..4823fad 100644 --- a/Jellyfin.Plugin.Seasonals/Web/frost.js +++ b/Jellyfin.Plugin.Seasonals/Web/frost.js @@ -1,6 +1,6 @@ const config = window.SeasonalsPluginConfig?.Frost || {}; -const frost = config.EnableFrost !== undefined ? config.EnableFrost : true; +const frost = config.EnableFrost !== undefined ? config.EnableFrost : true; // enable/disable frost let msgPrinted = false; diff --git a/Jellyfin.Plugin.Seasonals/Web/hearts.js b/Jellyfin.Plugin.Seasonals/Web/hearts.js index d0331e3..28484e9 100644 --- a/Jellyfin.Plugin.Seasonals/Web/hearts.js +++ b/Jellyfin.Plugin.Seasonals/Web/hearts.js @@ -1,10 +1,10 @@ const config = window.SeasonalsPluginConfig?.Hearts || {}; const hearts = config.EnableHearts !== undefined ? config.EnableHearts : true; // enable/disable hearts -const randomSymbols = config.EnableRandomSymbols !== undefined ? config.EnableRandomSymbols : true; // enable more random symbols -const randomSymbolsMobile = config.EnableRandomSymbolsMobile !== undefined ? config.EnableRandomSymbolsMobile : false; // enable random symbols on mobile devices (Warning: High values may affect performance) -const enableDiffrentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different animation duration for random symbols -const heartsCount = config.SymbolCount || 25; // count of random extra symbols +const randomSymbols = config.EnableRandomSymbols !== undefined ? config.EnableRandomSymbols : true; // enable random symbols +const randomSymbolsMobile = config.EnableRandomSymbolsMobile !== undefined ? config.EnableRandomSymbolsMobile : false; // enable random symbols on mobile +const enableDiffrentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations +const heartsCount = config.SymbolCount !== undefined ? config.SymbolCount : 25; // count of symbol // Array of hearts characters const heartSymbols = ['❤️', '💕', '💞', '💓', '💗', '💖']; diff --git a/Jellyfin.Plugin.Seasonals/Web/matrix.js b/Jellyfin.Plugin.Seasonals/Web/matrix.js index 1ff8fb9..aa35831 100644 --- a/Jellyfin.Plugin.Seasonals/Web/matrix.js +++ b/Jellyfin.Plugin.Seasonals/Web/matrix.js @@ -1,9 +1,9 @@ const config = window.SeasonalsPluginConfig?.Matrix || {}; -const enabled = config.EnableMatrix !== undefined ? config.EnableMatrix : true; -const maxTrails = config.SymbolCount || 25; -const backgroundMode = config.EnableMatrixBackground !== undefined ? config.EnableMatrixBackground : false; -const matrixChars = config.MatrixChars || '0123456789'; +const enabled = config.EnableMatrix !== undefined ? config.EnableMatrix : true; // enable/disable matrix +const maxTrails = config.SymbolCount !== undefined ? config.SymbolCount : 25; // count of max trails on screen +const backgroundMode = config.EnableMatrixBackground !== undefined ? config.EnableMatrixBackground : false; // enable/disable matrix as background +const matrixChars = config.MatrixChars !== undefined ? config.MatrixChars : '0123456789'; // characters to use in the matrix rain, default is '0123456789' let msgPrinted = false; let isHidden = false; diff --git a/Jellyfin.Plugin.Seasonals/Web/oktoberfest.js b/Jellyfin.Plugin.Seasonals/Web/oktoberfest.js index c64cd3d..f49acaf 100644 --- a/Jellyfin.Plugin.Seasonals/Web/oktoberfest.js +++ b/Jellyfin.Plugin.Seasonals/Web/oktoberfest.js @@ -1,5 +1,5 @@ const config = window.SeasonalsPluginConfig?.Oktoberfest || {}; -const oktoberfest = config.EnableOktoberfest !== undefined ? config.EnableOktoberfest : true; +const oktoberfest = config.EnableOktoberfest !== undefined ? config.EnableOktoberfest : true; // enable/disable oktoberfest const oktoberfestSymbols = ['🥨', '🍺', '🍻', '🥨', '🥨']; diff --git a/Jellyfin.Plugin.Seasonals/Web/oscar.js b/Jellyfin.Plugin.Seasonals/Web/oscar.js index 9e0d063..4fe82a7 100644 --- a/Jellyfin.Plugin.Seasonals/Web/oscar.js +++ b/Jellyfin.Plugin.Seasonals/Web/oscar.js @@ -1,5 +1,5 @@ const config = window.SeasonalsPluginConfig?.Oscar || {}; -const oscar = config.EnableOscar !== undefined ? config.EnableOscar : true; +const oscar = config.EnableOscar !== undefined ? config.EnableOscar : true; // enable/disable oscar let msgPrinted = false; diff --git a/Jellyfin.Plugin.Seasonals/Web/pride.js b/Jellyfin.Plugin.Seasonals/Web/pride.js index 7915cb1..a8f8d03 100644 --- a/Jellyfin.Plugin.Seasonals/Web/pride.js +++ b/Jellyfin.Plugin.Seasonals/Web/pride.js @@ -1,9 +1,9 @@ const config = window.SeasonalsPluginConfig?.Pride || {}; -const enabled = config.EnablePride !== undefined ? config.EnablePride : true; -const elementCount = config.HeartCount || 20; -const heartSize = config.HeartSize || 1.5; -const colorHeader = config.ColorHeader !== undefined ? config.ColorHeader : true; +const enabled = config.EnablePride !== undefined ? config.EnablePride : true; // enable/disable pride +const elementCount = config.HeartCount !== undefined ? config.HeartCount : 20; // count of heart +const heartSize = config.HeartSize !== undefined ? config.HeartSize : 1.5; // size of hearts +const colorHeader = config.ColorHeader !== undefined ? config.ColorHeader : true; // optionally color the header with pride colors let msgPrinted = false; diff --git a/Jellyfin.Plugin.Seasonals/Web/rain.js b/Jellyfin.Plugin.Seasonals/Web/rain.js index 8621733..544486d 100644 --- a/Jellyfin.Plugin.Seasonals/Web/rain.js +++ b/Jellyfin.Plugin.Seasonals/Web/rain.js @@ -1,9 +1,9 @@ const config = window.SeasonalsPluginConfig?.Rain || {}; -const enabled = config.EnableRain !== undefined ? config.EnableRain : true; +const enabled = config.EnableRain !== undefined ? config.EnableRain : true; // enable/disable rain const isMobile = window.innerWidth <= 768; -const elementCount = isMobile ? (config.RaindropCountMobile || 150) : (config.RaindropCount || 300); -const rainSpeed = config.RainSpeed || 1.0; +const elementCount = isMobile ? (config.RaindropCountMobile || 150) : (config.RaindropCount || 300); // count of raindrops +const rainSpeed = config.RainSpeed !== undefined ? config.RainSpeed : 1.0; // speed of rain let msgPrinted = false; diff --git a/Jellyfin.Plugin.Seasonals/Web/resurrection.js b/Jellyfin.Plugin.Seasonals/Web/resurrection.js index b3c1d2d..11443bd 100644 --- a/Jellyfin.Plugin.Seasonals/Web/resurrection.js +++ b/Jellyfin.Plugin.Seasonals/Web/resurrection.js @@ -1,10 +1,10 @@ const config = window.SeasonalsPluginConfig?.Resurrection || {}; -const enableResurrection = config.EnableResurrection !== undefined ? config.EnableResurrection : true; -const enableRandomSymbols = config.EnableRandomSymbols !== undefined ? config.EnableRandomSymbols : true; -const enableRandomSymbolsMobile = config.EnableRandomSymbolsMobile !== undefined ? config.EnableRandomSymbolsMobile : false; -const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; -const symbolCount = config.SymbolCount || 12; +const enableResurrection = config.EnableResurrection !== undefined ? config.EnableResurrection : true; // enable/disable resurrection +const enableRandomSymbols = config.EnableRandomSymbols !== undefined ? config.EnableRandomSymbols : true; // enable random symbols +const enableRandomSymbolsMobile = config.EnableRandomSymbolsMobile !== undefined ? config.EnableRandomSymbolsMobile : false; // enable random symbols on mobile +const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations +const symbolCount = config.SymbolCount !== undefined ? config.SymbolCount : 12; // count of symbols let animationEnabled = true; let statusLogged = false; diff --git a/Jellyfin.Plugin.Seasonals/Web/santa.js b/Jellyfin.Plugin.Seasonals/Web/santa.js index 08b86f6..2a26abe 100644 --- a/Jellyfin.Plugin.Seasonals/Web/santa.js +++ b/Jellyfin.Plugin.Seasonals/Web/santa.js @@ -1,15 +1,15 @@ const config = window.SeasonalsPluginConfig?.Santa || {}; const santaIsFlying = config.EnableSanta !== undefined ? config.EnableSanta : true; // enable/disable santa -let snowflakesCount = config.SnowflakesCount || 500; // count of snowflakes (recommended values: 300-600) -const snowflakesCountMobile = config.SnowflakesCountMobile || 250; // count of snowflakes on mobile devices (Warning: High values may affect performance) -const snowFallSpeed = config.SnowFallSpeed || 3; // speed of snowfall (recommended values: 0-5) -const santaSpeed = config.SantaSpeed || 10; // speed of santa in seconds (recommended values: 5-15) -const santaSpeedMobile = config.SantaSpeedMobile || 8; // speed of santa on mobile devices in seconds -const maxSantaRestTime = config.MaxSantaRestTime || 8; // maximum time santa rests in seconds -const minSantaRestTime = config.MinSantaRestTime || 3; // minimum time santa rests in seconds -const maxPresentFallSpeed = config.MaxPresentFallSpeed || 5; // maximum speed of falling presents in seconds -const minPresentFallSpeed = config.MinPresentFallSpeed || 2; // minimum speed of falling presents in seconds +let snowflakesCount = config.SnowflakesCount !== undefined ? config.SnowflakesCount : 500; // count of snowflakes +const snowflakesCountMobile = config.SnowflakesCountMobile !== undefined ? config.SnowflakesCountMobile : 250; // count of snowflakes on mobile +const snowFallSpeed = config.SnowFallSpeed !== undefined ? config.SnowFallSpeed : 3; // speed of snowfall +const santaSpeed = config.SantaSpeed !== undefined ? config.SantaSpeed : 10; // speed of santa in seconds +const santaSpeedMobile = config.SantaSpeedMobile !== undefined ? config.SantaSpeedMobile : 8; // speed of santa on mobile devices in seconds +const maxSantaRestTime = config.MaxSantaRestTime !== undefined ? config.MaxSantaRestTime : 8; // maximum time santa rests in seconds +const minSantaRestTime = config.MinSantaRestTime !== undefined ? config.MinSantaRestTime : 3; // minimum time santa rests in seconds +const maxPresentFallSpeed = config.MaxPresentFallSpeed !== undefined ? config.MaxPresentFallSpeed : 5; // maximum speed of falling presents in seconds +const minPresentFallSpeed = config.MinPresentFallSpeed !== undefined ? config.MinPresentFallSpeed : 2; // minimum speed of falling presents in seconds // credits: flaticon.com const presentImages = [ diff --git a/Jellyfin.Plugin.Seasonals/Web/snowfall.js b/Jellyfin.Plugin.Seasonals/Web/snowfall.js index b2047d4..a903c9c 100644 --- a/Jellyfin.Plugin.Seasonals/Web/snowfall.js +++ b/Jellyfin.Plugin.Seasonals/Web/snowfall.js @@ -1,9 +1,9 @@ const config = window.SeasonalsPluginConfig?.Snowfall || {}; const snowfall = config.EnableSnowfall !== undefined ? config.EnableSnowfall : true; // enable/disable snowfall -let snowflakesCount = config.SnowflakesCount || 500; // count of snowflakes (recommended values: 300-600) -const snowflakesCountMobile = config.SnowflakesCountMobile || 250; // count of snowflakes on mobile devices (Warning: High values may affect performance) -const snowFallSpeed = config.Speed || 3; // speed of snowfall (recommended values: 0-5) +let snowflakesCount = config.SnowflakesCount !== undefined ? config.SnowflakesCount : 500; // count of snowflakes +const snowflakesCountMobile = config.SnowflakesCountMobile !== undefined ? config.SnowflakesCountMobile : 250; // count of snowflakes on mobile +const snowFallSpeed = config.Speed !== undefined ? config.Speed : 3; // speed of snowfall let msgPrinted = false; // flag to prevent multiple console messages diff --git a/Jellyfin.Plugin.Seasonals/Web/snowflakes.js b/Jellyfin.Plugin.Seasonals/Web/snowflakes.js index d18d29c..036dd48 100644 --- a/Jellyfin.Plugin.Seasonals/Web/snowflakes.js +++ b/Jellyfin.Plugin.Seasonals/Web/snowflakes.js @@ -1,11 +1,11 @@ const config = window.SeasonalsPluginConfig?.Snowflakes || {}; const snowflakes = config.EnableSnowflakes !== undefined ? config.EnableSnowflakes : true; // enable/disable snowflakes -const snowflakeCount = config.SnowflakeCount || 25; // count of random extra snowflakes -const randomSnowflakes = config.EnableRandomSnowflakes !== undefined ? config.EnableRandomSnowflakes : true; // enable random Snowflakes -const randomSnowflakesMobile = config.EnableRandomSnowflakesMobile !== undefined ? config.EnableRandomSnowflakesMobile : false; // enable random Snowflakes on mobile devices -const enableColoredSnowflakes = config.EnableColoredSnowflakes !== undefined ? config.EnableColoredSnowflakes : true; // enable colored snowflakes -const enableDiffrentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different animation duration +const snowflakeCount = config.SnowflakeCount !== undefined ? config.SnowflakeCount : 25; // count of snowflakes +const randomSnowflakes = config.EnableRandomSnowflakes !== undefined ? config.EnableRandomSnowflakes : true; // enable random snowflakes +const randomSnowflakesMobile = config.EnableRandomSnowflakesMobile !== undefined ? config.EnableRandomSnowflakesMobile : false; // enable random snowflakes on mobile +const enableColoredSnowflakes = config.EnableColoredSnowflakes !== undefined ? config.EnableColoredSnowflakes : true; // enable/disable colored snowflakes +const enableDiffrentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations const snowflakeSymbols = ['❅', '❆']; // some snowflake symbols const snowflakeSymbolsMobile = ['❅', '❆', '❄']; // some snowflake symbols mobile version diff --git a/Jellyfin.Plugin.Seasonals/Web/snowstorm.js b/Jellyfin.Plugin.Seasonals/Web/snowstorm.js index 5586f96..64b2f97 100644 --- a/Jellyfin.Plugin.Seasonals/Web/snowstorm.js +++ b/Jellyfin.Plugin.Seasonals/Web/snowstorm.js @@ -1,11 +1,11 @@ const config = window.SeasonalsPluginConfig?.Snowstorm || {}; const snowstorm = config.EnableSnowstorm !== undefined ? config.EnableSnowstorm : true; // enable/disable snowstorm -let snowflakesCount = config.SnowflakesCount || 500; // count of snowflakes (recommended values: 300-600) -const snowflakesCountMobile = config.SnowflakesCountMobile || 250; // count of snowflakes on mobile devices (Warning: High values may affect performance) -const snowFallSpeed = config.Speed || 6; // speed of snowfall (recommended values: 4-8) -const horizontalWind = config.HorizontalWind || 4; // horizontal wind speed (recommended value: 4) -const verticalVariation = config.VerticalVariation || 2; // vertical variation (recommended value: 2) +let snowflakesCount = config.SnowflakesCount !== undefined ? config.SnowflakesCount : 500; // count of snowflakes +const snowflakesCountMobile = config.SnowflakesCountMobile !== undefined ? config.SnowflakesCountMobile : 250; // count of snowflakes on mobile +const snowFallSpeed = config.Speed !== undefined ? config.Speed : 6; // speed of snowstorm +const horizontalWind = config.HorizontalWind !== undefined ? config.HorizontalWind : 4; // horizontal wind strength +const verticalVariation = config.VerticalVariation !== undefined ? config.VerticalVariation : 2; // vertical variation let msgPrinted = false; // flag to prevent multiple console messages diff --git a/Jellyfin.Plugin.Seasonals/Web/space.js b/Jellyfin.Plugin.Seasonals/Web/space.js index 7e1e611..cf34f12 100644 --- a/Jellyfin.Plugin.Seasonals/Web/space.js +++ b/Jellyfin.Plugin.Seasonals/Web/space.js @@ -1,12 +1,12 @@ const config = window.SeasonalsPluginConfig?.Space || {}; -const space = config.EnableSpace !== undefined ? config.EnableSpace : true; -const planetCountConf = config.PlanetCount !== undefined ? config.PlanetCount : 6; -const astronautCountConf = config.AstronautCount !== undefined ? config.AstronautCount : 1; -const satelliteCountConf = config.SatelliteCount !== undefined ? config.SatelliteCount : 4; -const issCountConf = config.IssCount !== undefined ? config.IssCount : 1; -const rocketCountConf = config.RocketCount !== undefined ? config.RocketCount : 1; -const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; +const space = config.EnableSpace !== undefined ? config.EnableSpace : true; // enable/disable space +const planetCountConf = config.PlanetCount !== undefined ? config.PlanetCount : 6; // count of planets +const astronautCountConf = config.AstronautCount !== undefined ? config.AstronautCount : 1; // count of astronaut +const satelliteCountConf = config.SatelliteCount !== undefined ? config.SatelliteCount : 4; // count of satellite +const issCountConf = config.IssCount !== undefined ? config.IssCount : 1; // count of iss +const rocketCountConf = config.RocketCount !== undefined ? config.RocketCount : 1; // count of rocket/space shuttle +const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations const symbolCountMobile = config.SymbolCountMobile !== undefined ? config.SymbolCountMobile : 2; // Devisor to reduce number of objects on mobile // Credit: https://lottiefiles.com/free-animation/astronaut-63lcWG4Xnh diff --git a/Jellyfin.Plugin.Seasonals/Web/spooky.js b/Jellyfin.Plugin.Seasonals/Web/spooky.js index 2952265..4986382 100644 --- a/Jellyfin.Plugin.Seasonals/Web/spooky.js +++ b/Jellyfin.Plugin.Seasonals/Web/spooky.js @@ -1,11 +1,11 @@ const config = window.SeasonalsPluginConfig?.Spooky || {}; -const spooky = config.EnableSpooky !== undefined ? config.EnableSpooky : true; // enable/disable -const spookyCount = config.SymbolCount || 25; // count of random extra symbols -const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; -const enableSpookySway = config.EnableSpookySway !== undefined ? config.EnableSpookySway : true; -const spookySize = config.SpookySize || 20; -const spookyGlowSize = config.SpookyGlowSize !== undefined ? config.SpookyGlowSize : 2; +const spooky = config.EnableSpooky !== undefined ? config.EnableSpooky : true; // enable/disable spooky +const spookyCount = config.SymbolCount !== undefined ? config.SymbolCount : 25; // count of symbols +const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations +const enableSpookySway = config.EnableSpookySway !== undefined ? config.EnableSpookySway : true; // enable/disable spooky sway +const spookySize = config.SpookySize !== undefined ? config.SpookySize : 20; // size of elements +const spookyGlowSize = config.SpookyGlowSize !== undefined ? config.SpookyGlowSize : 2; // size of element glow const spookyImages = [ "../Seasonals/Resources/halloween_images/ghost_20x20.png", diff --git a/Jellyfin.Plugin.Seasonals/Web/sports.js b/Jellyfin.Plugin.Seasonals/Web/sports.js index cc1910f..c7e8890 100644 --- a/Jellyfin.Plugin.Seasonals/Web/sports.js +++ b/Jellyfin.Plugin.Seasonals/Web/sports.js @@ -1,12 +1,11 @@ const config = window.SeasonalsPluginConfig?.Sports || {}; -const sports = config.EnableSports !== undefined ? config.EnableSports : true; -const symbolCount = config.SymbolCount || 5; -const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; -const enableTrophy = config.EnableTrophy !== undefined ? config.EnableTrophy : false; - -const rawSportsBalls = config.SportsBalls || 'football,basketball,tennis,volleyball'; -const turfColorHex = config.TurfColor || '#228b22'; +const sports = config.EnableSports !== undefined ? config.EnableSports : true; // enable/disable sports +const symbolCount = config.SymbolCount !== undefined ? config.SymbolCount : 5; // count of balls per category +const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations +const enableTrophy = config.EnableTrophy !== undefined ? config.EnableTrophy : false; // enable/disable trophy +const rawSportsBalls = config.SportsBalls !== undefined ? config.SportsBalls : 'football,basketball,tennis,volleyball'; // set sports categories to spawn +const turfColorHex = config.TurfColor !== undefined ? config.TurfColor : '#228b22'; // color of turf const confettiColors = config.ConfettiColors ? config.ConfettiColors.split(',') : ['#000000', '#FF0000', '#FFCC00']; // Add Country Colored confetti // Pre-declare and manage image assets diff --git a/Jellyfin.Plugin.Seasonals/Web/spring.js b/Jellyfin.Plugin.Seasonals/Web/spring.js index 0eb6a13..34dfd0a 100644 --- a/Jellyfin.Plugin.Seasonals/Web/spring.js +++ b/Jellyfin.Plugin.Seasonals/Web/spring.js @@ -1,13 +1,13 @@ const config = window.SeasonalsPluginConfig?.Spring || {}; -const spring = config.EnableSpring !== undefined ? config.EnableSpring : true; // Enable/disable spring -const pollenCount = config.PollenCount || 30; // Number of pollen particles -const enableSunbeams = config.EnableSpringSunbeams !== undefined ? config.EnableSpringSunbeams : true; // Enable/disable sunbeams -const sunbeamCount = config.SunbeamCount || 5; // Number of sunbeams -const birdCount = config.BirdCount !== undefined ? config.BirdCount : 3; // Number of birds -const butterflyCount = config.ButterflyCount !== undefined ? config.ButterflyCount : 4; // Number of butterflies -const beeCount = config.BeeCount !== undefined ? config.BeeCount : 2; // Number of bees -const ladybugCount = config.LadybugCount !== undefined ? config.LadybugCount : 2; // Number of ladybugs +const spring = config.EnableSpring !== undefined ? config.EnableSpring : true; // enable/disable spring +const pollenCount = config.PollenCount !== undefined ? config.PollenCount : 30; // count of pollen +const enableSunbeams = config.EnableSpringSunbeams !== undefined ? config.EnableSpringSunbeams : true; // enable/disable sunbeams +const sunbeamCount = config.SunbeamCount !== undefined ? config.SunbeamCount : 5; // count of sunbeams +const birdCount = config.BirdCount !== undefined ? config.BirdCount : 3; // count of birds +const butterflyCount = config.ButterflyCount !== undefined ? config.ButterflyCount : 4; // count of butterflies +const beeCount = config.BeeCount !== undefined ? config.BeeCount : 2; // count of bees +const ladybugCount = config.LadybugCount !== undefined ? config.LadybugCount : 2; // count of ladybugs const symbolCountMobile = config.SymbolCountMobile !== undefined ? config.SymbolCountMobile : 2; // Devisor to reduce number of objects on mobile // Credit: https://lottiefiles.com/free-animation/birds-flying-V7O0L8jkOg diff --git a/Jellyfin.Plugin.Seasonals/Web/starwars.js b/Jellyfin.Plugin.Seasonals/Web/starwars.js index c5227fa..86a3e41 100644 --- a/Jellyfin.Plugin.Seasonals/Web/starwars.js +++ b/Jellyfin.Plugin.Seasonals/Web/starwars.js @@ -1,5 +1,5 @@ const config = window.SeasonalsPluginConfig?.StarWars || {}; -const starwars = config.EnableStarWars !== undefined ? config.EnableStarWars : true; +const starwars = config.EnableStarWars !== undefined ? config.EnableStarWars : true; // enable/disable starwars let msgPrinted = false; diff --git a/Jellyfin.Plugin.Seasonals/Web/storm.js b/Jellyfin.Plugin.Seasonals/Web/storm.js index 2e762a8..7432672 100644 --- a/Jellyfin.Plugin.Seasonals/Web/storm.js +++ b/Jellyfin.Plugin.Seasonals/Web/storm.js @@ -1,10 +1,10 @@ const config = window.SeasonalsPluginConfig?.Storm || {}; -const enabled = config.EnableStorm !== undefined ? config.EnableStorm : true; +const enabled = config.EnableStorm !== undefined ? config.EnableStorm : true; // enable/disable storm const isMobile = window.innerWidth <= 768; -const elementCount = isMobile ? (config.RaindropCountMobile || 150) : (config.RaindropCount || 300); -const enableLightning = config.EnableLightning !== undefined ? config.EnableLightning : true; -const rainSpeed = config.RainSpeed || 1.0; +const elementCount = isMobile ? (config.RaindropCountMobile || 150) : (config.RaindropCount || 300); // count of raindrops +const enableLightning = config.EnableLightning !== undefined ? config.EnableLightning : true; // enable/disable lightning +const rainSpeed = config.RainSpeed !== undefined ? config.RainSpeed : 1.0; // speed of rain let msgPrinted = false; diff --git a/Jellyfin.Plugin.Seasonals/Web/summer.js b/Jellyfin.Plugin.Seasonals/Web/summer.js index f0b8d34..1394aab 100644 --- a/Jellyfin.Plugin.Seasonals/Web/summer.js +++ b/Jellyfin.Plugin.Seasonals/Web/summer.js @@ -1,10 +1,10 @@ const config = window.SeasonalsPluginConfig?.Summer || {}; -const summer = config.EnableSummer !== undefined ? config.EnableSummer : true; // Enable/disable summer theme -const bubbleCount = config.BubbleCount || 30; // Number of bubbles -const dustCount = config.DustCount || 50; // Number of dust particles +const summer = config.EnableSummer !== undefined ? config.EnableSummer : true; // enable/disable summer +const bubbleCount = config.BubbleCount !== undefined ? config.BubbleCount : 30; // count of bubbles +const dustCount = config.DustCount !== undefined ? config.DustCount : 50; // count of dust particles const symbolCountMobile = config.SymbolCountMobile !== undefined ? config.SymbolCountMobile : 2; // Devisor to reduce number of objects on mobile -const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // Randomize animation duration of bubbles and dust +const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations let msgPrinted = false; diff --git a/Jellyfin.Plugin.Seasonals/Web/underwater.js b/Jellyfin.Plugin.Seasonals/Web/underwater.js index 6d99be8..fd8c2d8 100644 --- a/Jellyfin.Plugin.Seasonals/Web/underwater.js +++ b/Jellyfin.Plugin.Seasonals/Web/underwater.js @@ -1,19 +1,19 @@ const config = window.SeasonalsPluginConfig?.Underwater || {}; -const underwater = config.EnableUnderwater !== undefined ? config.EnableUnderwater : true; +const underwater = config.EnableUnderwater !== undefined ? config.EnableUnderwater : true; // enable/disable underwater const symbolCountMobile = config.SymbolCountMobile !== undefined ? config.SymbolCountMobile : 2; // Devisor to reduce number of objects on mobile -const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; -const enableLightRays = config.EnableLightRays !== undefined ? config.EnableLightRays : true; -const seaweedCount = config.SeaweedCount !== undefined ? config.SeaweedCount : 50; +const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations +const enableLightRays = config.EnableLightRays !== undefined ? config.EnableLightRays : true; // enable/disable lightrays +const seaweedCount = config.SeaweedCount !== undefined ? config.SeaweedCount : 50; // count of seaweed // Entity counts configured -const fishCount = config.FishCount !== undefined ? config.FishCount : 15; -const seahorseCount = config.SeahorseCount !== undefined ? config.SeahorseCount : 3; -const jellyfishCount = config.JellyfishCount !== undefined ? config.JellyfishCount : 3; -const turtleCount = config.TurtleCount !== undefined ? config.TurtleCount : 1; -const crabCount = config.CrabCount !== undefined ? config.CrabCount : 2; -const starfishCount = config.StarfishCount !== undefined ? config.StarfishCount : 2; -const shellCount = config.ShellCount !== undefined ? config.ShellCount : 2; +const fishCount = config.FishCount !== undefined ? config.FishCount : 15; // count of fish +const seahorseCount = config.SeahorseCount !== undefined ? config.SeahorseCount : 3; // count of seahorse +const jellyfishCount = config.JellyfishCount !== undefined ? config.JellyfishCount : 3; // count of jellyfish +const turtleCount = config.TurtleCount !== undefined ? config.TurtleCount : 1; // count of turtle +const crabCount = config.CrabCount !== undefined ? config.CrabCount : 2; // count of crab +const starfishCount = config.StarfishCount !== undefined ? config.StarfishCount : 2; // count of starfish +const shellCount = config.ShellCount !== undefined ? config.ShellCount : 2; // count of shell // credits: https://lottiefiles.com/free-animation/seaweed-E6Go0HdkqY const seaweeds = [