Add names to previews and fix the size of images

This commit is contained in:
Prayag
2020-12-11 20:40:45 +05:30
committed by GitHub
parent 6f18c554f7
commit 93b25fc4f1

View File

@@ -81,11 +81,11 @@
function loadPreviews(skin){
var html = "";
skin.previews.forEach(element => {
html += getImgnames(element.name);
html += getImage(element.url);
});
return html;
}
}
function getCheckBox ( option) {
var html = "";
@@ -155,9 +155,15 @@
return html
}
function getImage(url){
function getImage(url){
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;
}
@@ -285,7 +291,11 @@
return false;
});
</script>
<style>
img{
width: 100%;
}
</style>
</div>
</body>
</html>