Add sections

This commit is contained in:
Mister Rajoy
2020-12-13 20:51:54 +01:00
parent e1d361b544
commit f71e386412
2 changed files with 23 additions and 2 deletions

View File

@@ -72,6 +72,8 @@
html += getSelector(element);
}else if(element.type == "slider"){
html += getSlider(element);
}else if(element.type == "section"){
html += getSection(element);
}
});
html += loadPreviews(skin);
@@ -172,7 +174,7 @@
return html
}
function getImage(url){
function getImage(url){
var html = "";
html += '<fieldset class="verticalSection verticalSection-extrabottompadding"><img src="'+url+'">';
return html;
@@ -182,7 +184,13 @@
var html = "";
html += '<legend>'+name+'</legend></fieldset>';
return html;
}
}
function getSection(option){
var html = "";
var name = option.name;
html += html += '<h2 class="sectionTitle" >'+ name +'</h2>';
}
function createCss(){
var savedHtml = "";