Add names to previews and fix the size of images
This commit is contained in:
@@ -81,11 +81,11 @@
|
|||||||
function loadPreviews(skin){
|
function loadPreviews(skin){
|
||||||
var html = "";
|
var html = "";
|
||||||
skin.previews.forEach(element => {
|
skin.previews.forEach(element => {
|
||||||
|
html += getImgnames(element.name);
|
||||||
html += getImage(element.url);
|
html += getImage(element.url);
|
||||||
});
|
});
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getCheckBox ( option) {
|
function getCheckBox ( option) {
|
||||||
var html = "";
|
var html = "";
|
||||||
@@ -155,9 +155,15 @@
|
|||||||
return html
|
return html
|
||||||
|
|
||||||
}
|
}
|
||||||
function getImage(url){
|
function getImage(url){
|
||||||
var html = "";
|
var html = "";
|
||||||
html += '<img src="'+url+'">';
|
html += '<fieldset class="verticalSection verticalSection-extrabottompadding"><img src="'+url+'">';
|
||||||
|
return html;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getImgnames(name){
|
||||||
|
var html = "";
|
||||||
|
html += '<legend>'+name+'</legend></fieldset>';
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -285,7 +291,11 @@
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<style>
|
||||||
|
img{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user