diff --git a/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html b/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html index dc32f95..d028a04 100644 --- a/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html +++ b/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html @@ -2,6 +2,8 @@ Skin Manager + +
@@ -28,9 +30,7 @@

- + @@ -40,8 +40,10 @@ $.getJSON('https://raw.githubusercontent.com/danieladov/jellyfin-plugin-skin-manager/master/skins-3.0.json', function(json) { data=json; loadSkins(); - Dashboard.hideLoadingMsg(); + Dashboard.hideLoadingMsg(); + checkEasterEggs(); }); + function loadSkins(){ var cssOptions = document.getElementById("cssOptions"); @@ -78,7 +80,8 @@ }); }) - + html += ''; + html += '' html += loadPreviews(skin); html += ''; $('#options').html(html).trigger('create'); @@ -101,7 +104,7 @@ return ""; } var html = ""; - html += ''; + html += '

Previews

'; skin.previews.forEach(element => { html += getImage(element.url); @@ -351,7 +354,8 @@ }); }) - + html += ''; + html += '' html += loadPreviews(skin); html += ''; $('#options').html(html).trigger('create'); @@ -420,6 +424,26 @@ return result; } + function checkEasterEggs(){ + var d = new Date(); + + + if((d.getDate()>=18 && d.getMonth()==11) || (d.getDate()>=10 && d.getMonth()==0)){ + startChristmas(); + } + } + + function startChristmas(){ + + $.getScript("https://unpkg.com/magic-snowflakes/dist/snowflakes.min.js", function(){ + var sf = new Snowflakes({ + count: 200, + maxSize: 25 + }); + }); + + } + @@ -497,7 +521,7 @@ .tooltip .tooltiptext { visibility: hidden; - width: auto; + width: 400px; background-color: transparent; color: #fff; text-align: center; @@ -521,6 +545,6 @@ border: none; } - +