Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 2647:83ae42eab960
LC
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Thu, 19 Jan 2017 15:50:36 +0000 |
parents | dc08127a5084 |
children | 781187c743cc |
comparison
equal
deleted
inserted
replaced
2646:dc08127a5084 | 2647:83ae42eab960 |
---|---|
636 // This will take the node from the popupOptions and display it | 636 // This will take the node from the popupOptions and display it |
637 var node = this.popupOptions[this.currentIndex], | 637 var node = this.popupOptions[this.currentIndex], |
638 converter = new showdown.Converter(), | 638 converter = new showdown.Converter(), |
639 p = new DOMParser(); | 639 p = new DOMParser(); |
640 this.popupResponse.innerHTML = ""; | 640 this.popupResponse.innerHTML = ""; |
641 this.popupTitle = p.parseFromString(converter.makeHtml(node.specification.statement), "text/html").getElementsByTagName("body")[0].firstElementChild; | 641 this.popupTitle.appendChild(p.parseFromString(converter.makeHtml(node.specification.statement), "text/html").getElementsByTagName("body")[0].firstElementChild); |
642 if (node.specification.type == 'question') { | 642 if (node.specification.type == 'question') { |
643 var textArea = document.createElement('textarea'); | 643 var textArea = document.createElement('textarea'); |
644 switch (node.specification.boxsize) { | 644 switch (node.specification.boxsize) { |
645 case 'small': | 645 case 'small': |
646 textArea.cols = "20"; | 646 textArea.cols = "20"; |