Mercurial > hg > webaudioevaluationtool
changeset 760:946f8b4762ad
APE: Ape sliders show loading percentage on first axis
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Thu, 17 Dec 2015 16:38:52 +0000 |
parents | 801e1977ab55 |
children | af6cfa619c24 |
files | ape.js |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ape.js Thu Dec 17 16:29:49 2015 +0000 +++ b/ape.js Thu Dec 17 16:38:52 2015 +0000 @@ -587,7 +587,17 @@ }); } }; - + this.updateLoading = function(progress) + { + if (progress != 100) + { + progress = String(progress); + progress = progress.split('.')[0]; + this.trackSliderObjects[0].children[0].textContent = progress+'%'; + } else { + this.trackSliderObjects[0].children[0].textContent = this.parent.id; + } + }; this.exportXMLDOM = function(audioObject) { // Called by the audioObject holding this element. Must be present var obj = [];