diff --git a/Client/WebServer/css/docs.css b/Client/WebServer/css/docs.css index f98052a3b..c629e7cf5 100644 --- a/Client/WebServer/css/docs.css +++ b/Client/WebServer/css/docs.css @@ -60,7 +60,7 @@ /* Position the docs-tooltip text */ position: absolute; - z-index: 1; + z-index: 101; bottom: 125%; left: 50%; margin-left: -120px; @@ -222,4 +222,20 @@ div.docs-font-small { margin-bottom:7px; + } + + hr.docs-shaded { + box-shadow: inset 0 6px 6px -6px rgba(0,0,0,0.5); + } + + .docs-footer-row { + margin-right: -15px; + margin-left: -15px; + } + + .docs-footer-body { + position: relative; + min-height: 1px; + padding-right: 15px; + padding-left: 15px; } \ No newline at end of file diff --git a/Client/WebServer/index.html b/Client/WebServer/index.html index 500b11f91..01ba38a2d 100644 --- a/Client/WebServer/index.html +++ b/Client/WebServer/index.html @@ -109,12 +109,13 @@ diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index 4462997eb..0a9834541 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -53,10 +53,13 @@ function newSuperalgosDocSpace() { window.contextMenu = { editParagraph: editParagraph, addParagraph: addParagraph, - code: code, - note: note, - warning: warning, - important: important + toJsCode: toJsCode, + toJsonCode: toJsonCode, + toText: toText, + toNote: toNote, + toWarning: toWarning, + toImportant: toImportant, + toSuccess: toSuccess } function editParagraph() { @@ -99,20 +102,42 @@ function newSuperalgosDocSpace() { contextMenuForceOutClick() } - function code() { + function toJsCode() { } - function note() { + function toJsonCode() { } - function warning() { - + function toText() { + let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) + docSchemaParagraph.style = 'Text' + renderPage() } - function important() { + function toNote() { + let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) + docSchemaParagraph.style = 'Note' + renderPage() + } + function toWarning() { + let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) + docSchemaParagraph.style = 'Warning' + renderPage() + } + + function toImportant() { + let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) + docSchemaParagraph.style = 'Important' + renderPage() + } + + function toSuccess() { + let docSchemaParagraph = docSchemaParagraphMap.get(selectedParagraph.id) + docSchemaParagraph.style = 'Success' + renderPage() } } } @@ -217,9 +242,9 @@ function newSuperalgosDocSpace() { We need to locate the parent node that it is a Paragraph, otherwise we could end up in an inner html element. */ - let paragraphNode = selection.baseNode.parentNode + let paragraphNode = selection.baseNode - if (paragraphNode.id !== undefined && paragraphNode.className === "docs-tooltip") { + if (paragraphNode.id !== undefined && paragraphNode.parentNode.className === "docs-tooltip") { return false } @@ -352,7 +377,7 @@ function newSuperalgosDocSpace() { styleClass = 'class="docs-font-small docs-alert-success"' prefix = ' Tip:' role = 'role="alert"' - key = key + '-sucess' + key = key + '-success' break } case 'Important': { @@ -413,11 +438,36 @@ function newSuperalgosDocSpace() { HTML = HTML + '' // Container Ends let docsAppDiv = document.getElementById('docsDiv') - docsAppDiv.innerHTML = HTML + docsAppDiv.innerHTML = HTML + addFooter() if (nodeDocsDefinition.definition !== undefined) { addDefinitionImage(nodeAppDefinition, renderingNode.project) } + + function addFooter() { + let HTML = '' + HTML = HTML + '
' + HTML = HTML + '' + return HTML + } } thisObject.sidePanelTab.open()