@@ -2,6 +2,8 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Skin Manager</title>
|
<title>Skin Manager</title>
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div data-role="page" class="page type-interior pluginConfigurationPage tbsConfigurationPage" data-require="emby-input,emby-button">
|
<div data-role="page" class="page type-interior pluginConfigurationPage tbsConfigurationPage" data-require="emby-input,emby-button">
|
||||||
@@ -28,9 +30,7 @@
|
|||||||
<div class="checkboxList checkboxList-verticalwrap" id ="options"></div>
|
<div class="checkboxList checkboxList-verticalwrap" id ="options"></div>
|
||||||
<br>
|
<br>
|
||||||
</div>
|
</div>
|
||||||
<button is="emby-button" type="button" class="raised block" id="refresh-library" onclick=setSkin()>
|
|
||||||
<span>Set Skin</span>
|
|
||||||
</button>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -41,7 +41,9 @@
|
|||||||
data=json;
|
data=json;
|
||||||
loadSkins();
|
loadSkins();
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
|
checkEasterEggs();
|
||||||
});
|
});
|
||||||
|
|
||||||
function loadSkins(){
|
function loadSkins(){
|
||||||
var cssOptions = document.getElementById("cssOptions");
|
var cssOptions = document.getElementById("cssOptions");
|
||||||
|
|
||||||
@@ -78,7 +80,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
|
html += '</fieldset>';
|
||||||
|
html += '<button is="emby-button" type="button" class="raised block" id="refresh-library" onclick=setSkin()><span>Set Skin</span></button>'
|
||||||
html += loadPreviews(skin);
|
html += loadPreviews(skin);
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
$('#options').html(html).trigger('create');
|
$('#options').html(html).trigger('create');
|
||||||
@@ -101,7 +104,7 @@
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
var html = "";
|
var html = "";
|
||||||
html += '</fieldset>';
|
|
||||||
html += '<h2 class="sectionTitle" >Previews</h2>';
|
html += '<h2 class="sectionTitle" >Previews</h2>';
|
||||||
skin.previews.forEach(element => {
|
skin.previews.forEach(element => {
|
||||||
html += getImage(element.url);
|
html += getImage(element.url);
|
||||||
@@ -351,7 +354,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
|
html += '</fieldset>';
|
||||||
|
html += '<button is="emby-button" type="button" class="raised block" id="refresh-library" onclick=setSkin()><span>Set Skin</span></button>'
|
||||||
html += loadPreviews(skin);
|
html += loadPreviews(skin);
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
$('#options').html(html).trigger('create');
|
$('#options').html(html).trigger('create');
|
||||||
@@ -420,6 +424,26 @@
|
|||||||
return result;
|
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 {
|
.tooltip .tooltiptext {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
width: auto;
|
width: 400px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user