Update DocsSpace.js

This commit is contained in:
Luis Fernando Molina committed 2020-12-12 18:35:53 +01:00
1 parent 583144b2f4
commit 840bca9e48
1 file changed
+10 -10
@@ -746,29 +746,29 @@ function newSuperalgosDocSpace() {
if (nodeAppDefinition.icon === undefined) {
imageName = nodeAppDefinition.type.toLowerCase().replace(' ', '-').replace(' ', '-').replace(' ', '-').replace(' ', '-').replace(' ', '-')
}
let htmlImage = document.createElement("IMG")
let imageElement = document.createElement("IMG")
let webParam = 'Icons/' + project + '/' + imageName + '.png'
htmlImage.src = webParam
htmlImage.width = "150"
htmlImage.height = "150"
imageElement.src = webParam
imageElement.width = "150"
imageElement.height = "150"
let definitionImageDiv = document.getElementById('definitionImageDiv')
definitionImageDiv.appendChild(htmlImage)
definitionImageDiv.appendChild(imageElement)
}
function addProjectImage(project) {
imageName = project.toLowerCase().replace(' ', '-').replace(' ', '-').replace(' ', '-').replace(' ', '-').replace(' ', '-')
let htmlImage = document.createElement("IMG")
let imageElement = document.createElement("IMG")
let webParam = 'Icons/' + project + '/' + imageName + '.png'
htmlImage.src = webParam
htmlImage.width = "50"
htmlImage.height = "50"
imageElement.src = webParam
imageElement.width = "50"
imageElement.height = "50"
let projectImageDiv = document.getElementById('projectImageDiv')
projectImageDiv.appendChild(htmlImage)
projectImageDiv.appendChild(imageElement)
}
function addBold(text) {