Mercurial > hg > webaudioevaluationtool
diff js/core.js @ 2580:a6b32c473577
Added minimum (left) and maximum (right) slider markers to the comment slider element
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Mon, 31 Oct 2016 15:14:53 +0000 |
parents | d83b38564fbb |
children | 5f7c11fa5f83 |
line wrap: on
line diff
--- a/js/core.js Sun Oct 30 13:57:37 2016 +0000 +++ b/js/core.js Mon Oct 31 15:14:53 2016 +0000 @@ -2644,9 +2644,20 @@ this.slider.value = commentQuestion.value; var br = document.createElement('br'); + var textHolder = document.createElement("div"); + textHolder.className = "comment-slider-text-holder"; + + this.leftText = document.createElement("span"); + this.leftText.textContent = commentQuestion.leftText; + this.rightText = document.createElement("span"); + this.rightText.textContent = commentQuestion.rightText; + textHolder.appendChild(this.leftText); + textHolder.appendChild(this.rightText); + this.holder.appendChild(this.string); this.holder.appendChild(br); this.holder.appendChild(this.slider); + this.holder.appendChild(textHolder); this.exportXMLDOM = function (storePoint) { var root = storePoint.parent.document.createElement('comment');