diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index e086c1ac3..7f9a4b5de 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -67,13 +67,11 @@ function newSuperalgosDocSpace() { buildNodeHtmlPage() function buildNodeHtmlPage() { - let HTML = '' - console.log(HTML) - //HTML = HTML + '

Thats Me On the Right!

Tutorials are defined within the system, so you may create more of us if you wish! But well discuss that God - like power later on...lets focus on the basics first!
Superalgos is inherently a visual tool. The system represents information in hierarchical structures of interconnected nodes, represented by icons. What you see on your right is one of these hierarchies—in particular, a
TutorialThe tutorial hierarchy features a free arrangement of tutorial topic and tutorial step nodes that make up a tutorial. Each node in the hierarchy, including the parent tutorial node, represents a HTML page that is overlaid on top of both the design space and the charting space.
hierarchy with a label reading Welcome to Superalgos!
Hover your mouse pointer over the Tutorial node and see what happens!
Wow! Cool right? Thats a lot of buttons!
' + let HTML = '' HTML = HTML + '' HTML = HTML + '' HTML = HTML + '' HTML = HTML + '
' - HTML = HTML + '
' + HTML = HTML + '
' HTML = HTML + '
' HTML = HTML + '' + addToolTips(node, nodeDocsDefinition.definition) + '' @@ -83,11 +81,27 @@ function newSuperalgosDocSpace() { let docsAppDiv = document.getElementById('docsDiv') docsAppDiv.innerHTML = HTML + addDefinitionImage(nodeAppDefinition, node.project) } thisObject.sidePanelTab.open() } + function addDefinitionImage(nodeAppDefinition, project) { + if (nodeAppDefinition.icon === undefined) { + imageName = nodeAppDefinition.type.toLowerCase().replace(' ', '-') + } + let htmlImage = document.createElement("IMG") + let webParam = 'Icons/' + project + '/' + imageName + '.png' + + htmlImage.src = webParam + htmlImage.width = "100" + htmlImage.height = "100" + + let definitionImageDiv = document.getElementById('definitionImageDiv') + definitionImageDiv.appendChild(htmlImage) + } + function addToolTips(node, text) { const TOOL_TIP_HTML = '
NODE_TYPENODE_DEFINITION
' let resultingText = ''