diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index 9449d2f30..214958b98 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -123,66 +123,77 @@ function newSuperalgosDocSpace() { function toJavascript() { let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Javascript' + contextMenuForceOutClick() renderPage() } function toJson() { let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Json' + contextMenuForceOutClick() renderPage() } function toText() { let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Text' + contextMenuForceOutClick() renderPage() } function toTitle() { let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Title' + contextMenuForceOutClick() renderPage() } function toSubtitle() { let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Subtitle' + contextMenuForceOutClick() renderPage() } function toNote() { let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Note' + contextMenuForceOutClick() renderPage() } function toWarning() { let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Warning' + contextMenuForceOutClick() renderPage() } function toImportant() { let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Important' + contextMenuForceOutClick() renderPage() } function toSuccess() { let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Success' + contextMenuForceOutClick() renderPage() } function toList() { let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'List' + contextMenuForceOutClick() renderPage() } function toTable() { let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Table' + contextMenuForceOutClick() renderPage() } } @@ -539,39 +550,6 @@ function newSuperalgosDocSpace() { HTML = HTML + '' } - - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '
Support PropertiesPossible Values of (i)Comments
support(i)Rate1 to 5The reference rate of the level.
support(i)Period1 to 5The number of periods the level has been in existence.
support(i)Bounce11 to 5The number of bounces for zone 1, the one rendered on-screen.
support(i)Bounce21 to 3The number of bounces for zone 2, only available for the first three levels. Zone 2 is two times bigger than zone 1.
' - HTML = HTML + '
' let paragraphIndex = 0 @@ -1354,7 +1332,6 @@ function newSuperalgosDocSpace() { role = '' key = key + '-table' innerHTML = parseTable(paragraph.text) - innerHTML = addBold(innerHTML) innerHTML = addItalics(innerHTML) innerHTML = addToolTips(innerHTML) break @@ -1437,11 +1414,11 @@ function newSuperalgosDocSpace() { let rows = text.split(String.fromCharCode(10)) for (let i = 0; i < rows.length; i++) { let row = rows[i] - if (row === '') { + if (row === '') { if (i === rows.length - 1) { HTML = HTML + '' } - continue + continue } let colums = row.split('|') if (i === 0) { @@ -1463,6 +1440,8 @@ function newSuperalgosDocSpace() { /* We discard anything before the first | and after the last | */ for (let j = 1; j < colums.length - 1; j++) { let column = colums[j] + column = addRGB(column) + if (i === 0) { HTML = HTML + '' + column + '' } else { @@ -1479,11 +1458,10 @@ function newSuperalgosDocSpace() { HTML = HTML + '' } } - HTML = addRGB(HTML) return HTML function addRGB(text) { - const RGB_HTML = '
HOLA 
' + const RGB_HTML = '
   
' let splittedText = text.split('RGB(') if (splittedText.length === 1) { return text } let remainderSplit = splittedText[1].split(')') @@ -1494,7 +1472,7 @@ function newSuperalgosDocSpace() { return result } } - // style=\"display: block; background: RGB; border: 1px solid black;\" + function reverseParseTable(HTML) { text = removeRGB(HTML) @@ -1523,8 +1501,8 @@ function newSuperalgosDocSpace() { function removeRGB(HTML) { let text = HTML - text.replace(' ', '') + text = text.replaceAll('
   
', '') return text } }