X-Git-Url: https://git.auder.net/?p=xogo.git;a=blobdiff_plain;f=app.js;h=17fe770c096b99cae2c51611a5a5034bf6f4adb1;hp=6036d49756f322a8dcbc7f1d33ee676095b2fffd;hb=d621e620e7b568df94c53611f6c71ab318f4ffe3;hpb=2ba476f3561b85caf6c7892fd085330e411c42b7 diff --git a/app.js b/app.js index 6036d49..17fe770 100644 --- a/app.js +++ b/app.js @@ -130,7 +130,9 @@ function toggleStyle(event, obj) { let options; function prepareOptions() { options = {}; - let optHtml = V.Options.select.map(select => { return ` + let optHtml = ""; + if (V.Options.select) { + optHtml += V.Options.select.map(select => { return `
@@ -147,9 +149,10 @@ function prepareOptions() {
`; - }).join(""); - optHtml += V.Options.check.map(check => { - return ` + }).join(""); + } + if (V.Options.check) { + optHtml += V.Options.check.map(check => { return `
`; - }).join(""); - if (V.Options.styles.length >= 1) { + }).join(""); + } + if (V.Options.input) { + optHtml += V.Options.input.map(input => { return ` +
+ +
`; + }).join(""); + } + if (V.Options.styles) { optHtml += '
'; let i = 0; const stylesLength = V.Options.styles.length;