@@ -54,39 +54,42 @@
< div class = "selectContainer" >
< label class = "selectLabel" for = "SeasonalsSelectedSeason" > Standard Season< / label >
< select is = "emby-select" id = "SeasonalsSelectedSeason" name = "SeasonalsSelectedSeason" class = "selectLayout emby-select-withcolor emby-select" style = "width: 100%; -webkit-appearance: menulist; appearance: menulist;" >
< option value = "none" > None< / option >
< option value = "autumn" > Autumn (f alling l eaves)< / option >
< option value = "none" > None< / option >
< option value = "autumn" > Autumn (F alling L eaves)< / option >
< option value = "birthday" > Birthday (Balloons & Confetti)< / option >
< option value = "carnival" > Carnival (Confetti)< / option >
< option value = "cherryblossom" > Cherry Blossom< / option >
< option value = "christmas" > Christmas< / option >
< option value = "earthday" > Earth Day (Growing Vines) < / option >
< option value = "earthday" > Earth Day< / option >
< option value = "easter" > Easter< / option >
< option value = "eidalfitr " > Eid al-Fitr (Sugar Feast)< / option >
< option value = "eurovision" > Eurovision (Dancing Notes) < / option >
< option value = "filmnoir" > Film-Noir (Classic B& W Cinema)< / option >
< option value = "eid" > Eid al-Fitr (Sugar Feast)< / option >
< option value = "eurovision" > Eurovision< / option >
< option value = "filmnoir" > Film-Noir (Classic B& W Cinema Filter )< / option >
< option value = "fireworks" > Fireworks< / option >
< option value = "friday13" > Friday the 13th< / option >
< option value = "frost" > Frost / Ice< / option >
< option value = "halloween" > Halloween< / option >
< option value = "hearts" > Hearts< / option >
< option value = "marioday" > Mario Day (March 10) < / option >
< option value = "marioday" > Mario Day< / option >
< option value = "matrix" > Matrix< / option >
< option value = "oktoberfest" > Oktoberfest< / option >
< option value = "oscar " > Oscar Awards (Glamour & Flashes) < / option >
< option value = "pride " > Pride (Rainbow Border) < / option >
< option value = "rain " > Rain (Pure Rain) < / option >
< option value = "olympia " > Olympia < / option >
< option value = "oscar " > Oscar Awards < / option >
< option value = "pride " > Pride < / option >
< option value = "rain" > Rain< / option >
< option value = "resurrection" > Resurrection by Bioflash257< / option >
< option value = "santa" > Santa (f lying s anta & s nowfall)< / option >
< option value = "santa" > Santa (F lying S anta & S nowfall)< / option >
< option value = "snowfall" > Snowfall< / option >
< option value = "snowflakes" > Snowflakes< / option >
< option value = "snowstorm" > Snowstorm< / option >
< option value = "space" > Space< / option >
< option value = "spooky" > Spooky< / option >
< option value = "sports" > Sports< / option >
< option value = "spring" > Spring< / option >
< option value = "patrick" disabled > St. Patrick's Day (not implemented yet. Please commit ideas/implementation in a issue or PR) < / option >
< option value = "starwars " > Star Wars Day (May 4th )< / option >
< option value = "storm" > Storm (Heavy Rain & Lightning (⚠️ Epilepsy Warning⚠️ ))< / option >
< option value = "starwars" > Star Wars Day < / option >
< option value = "storm " > Storm (⚠️ Epilepsy Warning⚠️ )< / option >
< option value = "summer" > Summer (Bubbles)< / option >
< option value = "thanksgiving" disabled > Thanksgiving (not implemented yet. Please commit ideas/implementation in a issue or PR) < / option >
< option value = "underwater" > Underwater < / option >
< / select >
< div class = "fieldDescription" > The season to display if automation is disabled or no "Auto Selection" rule matches the current date.< / div >
< / div >
@@ -407,11 +410,6 @@
< span > Enable Light Rays (God Rays)< / span >
< / label >
< / div >
< div class = "inputContainer" >
< label class = "inputLabel" for = "UnderwaterSymbolCount" > Symbol Count< / label >
< input is = "emby-input" type = "number" id = "UnderwaterSymbolCount" name = "UnderwaterSymbolCount" / >
< div class = "fieldDescription" > Number of sea creatures.< / div >
< / div >
< div class = "inputContainer" >
< label class = "inputLabel" for = "UnderwaterSymbolCountMobile" > Symbol Count (Mobile)< / label >
< input is = "emby-input" type = "number" id = "UnderwaterSymbolCountMobile" name = "UnderwaterSymbolCountMobile" / >
@@ -581,16 +579,6 @@
< / label >
< div class = "fieldDescription" > Show the Easter Bunny hopping across the screen.< / div >
< / div >
< div class = "inputContainer" >
< label class = "inputLabel" for = "BunnyDuration" > Bunny Duration (ms)< / label >
< input is = "emby-input" type = "number" id = "BunnyDuration" name = "BunnyDuration" / >
< div class = "fieldDescription" > Time in milliseconds for one hop cycle.< / div >
< / div >
< div class = "inputContainer" >
< label class = "inputLabel" for = "HopHeight" > Hop Height (px)< / label >
< input is = "emby-input" type = "number" id = "HopHeight" name = "HopHeight" / >
< div class = "fieldDescription" > Height of the bunny's hop in pixels.< / div >
< / div >
< div class = "inputContainer" >
< label class = "inputLabel" for = "MinBunnyRestTime" > Min Bunny Rest Time (ms)< / label >
< input is = "emby-input" type = "number" id = "MinBunnyRestTime" name = "MinBunnyRestTime" / >
@@ -1105,11 +1093,6 @@
< input is = "emby-input" type = "number" id = "EurovisionSymbolCount" name = "EurovisionSymbolCount" / >
< div class = "fieldDescription" > Number of additional dancing music notes (if enabled).< / div >
< / div >
< div class = "inputContainer" >
< label class = "inputLabel" for = "EurovisionSymbolCountMobile" > Symbol Count (Mobile)< / label >
< input is = "emby-input" type = "number" id = "EurovisionSymbolCountMobile" name = "EurovisionSymbolCountMobile" / >
< div class = "fieldDescription" > Amount of notes on mobile. Minimum 0. Warning: High values may affect performance.< / div >
< / div >
< div class = "checkboxContainer checkboxContainer-withDescription" >
< label class = "emby-checkbox-label" >
< input id = "EnableDifferentDurationEurovision" name = "EnableDifferentDurationEurovision" type = "checkbox" is = "emby-checkbox" / >
@@ -1153,11 +1136,6 @@
< input is = "emby-input" type = "number" id = "MatrixSymbolCount" name = "MatrixSymbolCount" / >
< div class = "fieldDescription" > Number of additional digital rain columns (if enabled).< / div >
< / div >
< div class = "inputContainer" >
< label class = "inputLabel" for = "MatrixSymbolCountMobile" > Symbol Count (Mobile)< / label >
< input is = "emby-input" type = "number" id = "MatrixSymbolCountMobile" name = "MatrixSymbolCountMobile" / >
< div class = "fieldDescription" > Amount of rain columns on mobile. Minimum 0. Warning: High values may affect performance.< / div >
< / div >
< div class = "inputContainer" >
< label class = "inputLabel" for = "MatrixChars" > Raining Characters< / label >
< input is = "emby-input" type = "text" id = "MatrixChars" name = "MatrixChars" / >
@@ -1322,7 +1300,6 @@
< input id = "LetMarioJump" name = "LetMarioJump" type = "checkbox" is = "emby-checkbox" / >
< span > Let Mario Jump< / span >
< / label >
< div class = "fieldDescription" > Allow Mario to jump periodically.< / div >
< / div >
< / details >
< hr style = "max-width: 800px; margin: 1em 0;" >
@@ -1346,6 +1323,20 @@
< span > Enable Oktoberfest Seasonal< / span >
< / label >
< / div >
< div class = "inputContainer" >
< label class = "inputLabel" for = "OktoberfestCount" > Symbol Count< / label >
< input is = "emby-input" type = "number" id = "OktoberfestCount" name = "OktoberfestCount" / >
< / div >
< div class = "inputContainer" >
< label class = "inputLabel" for = "OktoberfestCountMobile" > Symbol Count (Mobile)< / label >
< input is = "emby-input" type = "number" id = "OktoberfestCountMobile" name = "OktoberfestCountMobile" / >
< / div >
< div class = "checkboxContainer checkboxContainer-withDescription" >
< label class = "emby-checkbox-label" >
< input id = "EnableDifferentDurationOktoberfest" name = "EnableDifferentDurationOktoberfest" type = "checkbox" is = "emby-checkbox" / >
< span > Enable Different Duration< / span >
< / label >
< / div >
< / details >
< hr style = "max-width: 800px; margin: 1em 0;" >
@@ -1546,15 +1537,16 @@
' <label class="selectLabel">Theme</label>' +
' <select class="emby-select emby-select-withcolor rule-theme" style="width: 100%; -webkit-appearance: menulist; appearance: menulist;">' +
' <option value="none">None</option>' +
' <option value="autumn">Autumn (f alling l eaves)</option>' +
' <option value="autumn">Autumn (F alling L eaves)</option>' +
' <option value="birthday">Birthday (Balloons & Confetti)</option>' +
' <option value="carnival">Carnival (Confetti)</option>' +
' <option value="cherryblossom">Cherry Blossom</option>' +
' <option value="christmas">Christmas</option>' +
' <option value="earthday">Earth Day</option>' +
' <option value="easter">Easter</option>' +
' <option value="eidalfitr">Eid al-Fitr</option>' +
' <option value="eidalfitr">Eid al-Fitr (Sugar Feast) </option>' +
' <option value="eurovision">Eurovision</option>' +
' <option value="filmnoir">Film-Noir</option>' +
' <option value="filmnoir">Film-Noir (Classic B&W Cinema Filter) </option>' +
' <option value="fireworks">Fireworks</option>' +
' <option value="friday13">Friday the 13th</option>' +
' <option value="frost">Frost / Ice</option>' +
@@ -1563,19 +1555,23 @@
' <option value="marioday">Mario Day</option>' +
' <option value="matrix">Matrix</option>' +
' <option value="oktoberfest">Oktoberfest</option>' +
' <option value="olympia">Olympia</option>' +
' <option value="oscar">Oscar Awards</option>' +
' <option value="pride">Pride</option>' +
' <option value="rain">Rain</option>' +
' <option value="resurrection">Resurrection by Bioflash257</option>' +
' <option value="santa">Santa (f lying s anta & s nowfall)</option>' +
' <option value="santa">Santa (F lying S anta & S nowfall)</option>' +
' <option value="snowfall">Snowfall</option>' +
' <option value="snowflakes">Snowflakes</option>' +
' <option value="snowstorm">Snowstorm</option>' +
' <option value="space">Space</option>' +
' <option value="spooky">Spooky</option>' +
' <option value="sports">Sports</option>' +
' <option value="spring">Spring</option>' +
' <option value="starwars">Star Wars Day</option>' +
' <option value="storm">Storm (Epilepsy Warning!)</option>' +
' <option value="summer">Summer (Bubbles)</option>' +
' <option value="underwater">Underwater</option>' +
' </select>' +
' </div>' +
'</div>' ;
@@ -1642,11 +1638,48 @@
document . querySelector ( '#SeasonalsConfigPage' )
. addEventListener ( 'pageshow' , function ( ) {
Dashboard . showLoadingMsg ( ) ;
ApiClient . getPluginConfiguration ( SeasonalsConfigPage . pluginUniqueId ) . then ( function ( config ) {
document . querySelector ( '#SeasonalsIsEnabled' ) . checked = config . IsEnabled ;
document . querySelector ( '#SeasonalsSelectedSeason' ) . value = config . SelectedSeason ;
document . querySelector ( '#SeasonalsAutomateSeasonSelection' ) . checked = config . AutomateSeasonSelection ;
document . querySelector ( '#SeasonalsEnableClientSideToggle' ) . checked = config . EnableClientSideToggle !== undefined ? config . EnableClientSideToggle : true ;
if ( ! config . Autumn ) config . Autumn = { } ;
if ( ! config . Birthday ) config . Birthday = { } ;
if ( ! config . Carnival ) config . Carnival = { } ;
if ( ! config . CherryBlossom ) config . CherryBlossom = { } ;
if ( ! config . Christmas ) config . Christmas = { } ;
if ( ! config . EarthDay ) config . EarthDay = { } ;
if ( ! config . Easter ) config . Easter = { } ;
if ( ! config . Eid ) config . Eid = { } ;
if ( ! config . Eurovision ) config . Eurovision = { } ;
if ( ! config . FilmNoir ) config . FilmNoir = { } ;
if ( ! config . Fireworks ) config . Fireworks = { } ;
if ( ! config . Friday13 ) config . Friday13 = { } ;
if ( ! config . Frost ) config . Frost = { } ;
if ( ! config . Halloween ) config . Halloween = { } ;
if ( ! config . Hearts ) config . Hearts = { } ;
if ( ! config . MarioDay ) config . MarioDay = { } ;
if ( ! config . Matrix ) config . Matrix = { } ;
if ( ! config . Oktoberfest ) config . Oktoberfest = { } ;
if ( ! config . Olympia ) config . Olympia = { } ;
if ( ! config . Oscar ) config . Oscar = { } ;
if ( ! config . Pride ) config . Pride = { } ;
if ( ! config . Rain ) config . Rain = { } ;
if ( ! config . Resurrection ) config . Resurrection = { } ;
if ( ! config . Santa ) config . Santa = { } ;
if ( ! config . Snowfall ) config . Snowfall = { } ;
if ( ! config . Snowflakes ) config . Snowflakes = { } ;
if ( ! config . Snowstorm ) config . Snowstorm = { } ;
if ( ! config . Space ) config . Space = { } ;
if ( ! config . Spooky ) config . Spooky = { } ;
if ( ! config . Sports ) config . Sports = { } ;
if ( ! config . Spring ) config . Spring = { } ;
if ( ! config . StarWars ) config . StarWars = { } ;
if ( ! config . Storm ) config . Storm = { } ;
if ( ! config . Summer ) config . Summer = { } ;
if ( ! config . Underwater ) config . Underwater = { } ;
// Load Rules
try {