From d2faedc011c69bea488acb85254537bfa1f62697 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 17 Dec 2020 16:42:09 +0100 Subject: [PATCH] tabs --- .../UI/Spaces/Docs-Space/DocsSpace.js | 51 +++++++++---------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index 12bdb9e19..389a30fd4 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -137,105 +137,105 @@ function newSuperalgosDocSpace() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Javascript' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } function toJson() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Json' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } function toText() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Text' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } function toTitle() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Title' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } function toSubtitle() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Subtitle' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } function toNote() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Note' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } function toWarning() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Warning' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } function toImportant() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Important' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } function toSuccess() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Success' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } function toCallout() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Callout' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } function toSummary() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Summary' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } function toList() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'List' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } function toTable() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Table' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } function toGif() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Gif' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } function toPng() { let docSchemaParagraph = paragraphMap.get(selectedParagraph.id) docSchemaParagraph.style = 'Png' contextMenuForceOutClick() - renderPage() + renderDocumentPage() } } @@ -493,7 +493,7 @@ function newSuperalgosDocSpace() { } } EDITOR_ON_FOCUS = false - renderPage() + renderDocumentPage() } } @@ -754,17 +754,17 @@ function newSuperalgosDocSpace() { } function buildHTML() { + const tabs = ['All', 'Nodes', 'Concepts', 'Topics'] let HTML = addSearchHeader() // Tabs HTML = HTML + '
' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' + let checked = ' checked=""' + for (let i = 0; i < tabs.length; i++) { + let tab = tabs[i] + HTML = HTML + '' + checked = '' + } // Results HTML = HTML + '
' @@ -880,12 +880,12 @@ function newSuperalgosDocSpace() { project: project } - renderPage() + renderDocumentPage() scrollToElement('docs-space-div') } - function renderPage() { + function renderDocumentPage() { disableCollapsibleContent() @@ -1815,7 +1815,6 @@ function newSuperalgosDocSpace() { HTML = HTML + '