Mercurial > hg > webaudioevaluationtool
changeset 2780:9c031a976321
#138. Added <image> to encoder
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Fri, 21 Apr 2017 15:17:02 +0100 |
parents | 46105b2573fc |
children | c59bcb698684 |
files | js/specification.js |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/js/specification.js Fri Apr 21 15:07:24 2017 +0100 +++ b/js/specification.js Fri Apr 21 15:17:02 2017 +0100 @@ -478,6 +478,11 @@ child.setAttribute("name", option.name); node.appendChild(child); }); + if (typeof this.image == "string" && this.image.length !== 0) { + var imgNode = doc.createElement("image"); + imgNode.setAttribute("src", this.image); + node.appendChild(imgNode); + } if (this.scales.length !== 0) { var scales = doc.createElement("scales"); this.scales.forEach(function (scale) {