Merge pull request #34 from prayag17/master

Add new option and change the preview for blur
This commit is contained in:
Daniel
2021-05-13 13:15:17 +02:00
committed by GitHub
2 changed files with 40 additions and 4 deletions

View File

@@ -338,7 +338,7 @@
'<div class="inputContainer"><label><span>' + name + '</span></label><input type="range" class="slider" value="' + defaultValue + '" oninput ="updateBlur(' + "'" + id + "'" + ')"' + 'step="' + step + '" data-css="' + css + '" id="' + id + '" name="' + id + '" min="0" max="40" label="' + name + '">' +
'<div class="fieldDescription">' + description + '</div>' +
'</div>' +
'<div class="img"><img id="' + id + 'image"' + 'src="https://i.gifer.com/4KL.gif"></div>';
'<div class="img"><img id="' + id + 'image"' + 'src="https://i.imgur.com/sMDQSdV.png"></div>';
return html;
}
@@ -413,7 +413,7 @@
//proccess selector
var selectors = document.getElementsByClassName("selector");
for (var i = 0;i<selectors.length;i++) {
for (var i = 0; i < selectors.length; i++) {
var element = selectors[i]
css +=
element.selectedOptions[0].value +
@@ -462,7 +462,9 @@
var element = fontPickers[i]
if (element.value != "") {
var url = "https://fonts.googleapis.com/css?family=" + element.value;
var promise = await fetch(url, {mode: 'no-cors'})
var promise = await fetch(url, {
mode: 'no-cors'
})
var text = await promise.text()
css += text
css += element.getAttribute("data-css").replaceAll("$", element.value.replaceAll("+", " "));

View File

@@ -342,6 +342,40 @@
}
]
},
{
"type": "selector",
"name": "Icon Pack",
"description": "Changes all icons like dashboard and play. Choose non google fonts if you are blocking google fonts",
"css": "/*Icons*/",
"selections": [{
"name": "Default",
"css": ""
},
{
"name": "Outlined",
"css": "@import url('https://prayag17.github.io/Jellyfin-Icons/Outline.css');"
},
{
"name": "Rounded",
"css": "@import url('https://prayag17.github.io/Jellyfin-Icons/round.css');"
},
{
"name": "Sharp",
"css": "@import url('https://prayag17.github.io/Jellyfin-Icons/Sharp.css');"
}, {
"name": "Outlined-Non google fonts",
"css": "@import url('https://prayag17.github.io/Jellyfin-Icons/Outline.css');"
},
{
"name": "Rounded-Non google fonts",
"css": "@import url('https://prayag17.github.io/Jellyfin-Icons/round.css');"
},
{
"name": "Sharp-Non google fonts",
"css": "@import url('https://prayag17.github.io/Jellyfin-Icons/Sharp.css');"
}
]
},
{
"type": "checkBox",
"name": "Image gradient in title page",