Mercurial > hg > webaudioevaluationtool
comparison interfaces/ABX.js @ 2935:0dd44ca5d062
Better fix for #224
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Mon, 11 Sep 2017 17:52:03 +0100 |
parents | 270f20b2d68f |
children | 03c166698eab |
comparison
equal
deleted
inserted
replaced
2934:260efd43fe52 | 2935:0dd44ca5d062 |
---|---|
269 this.disabled = false; | 269 this.disabled = false; |
270 } | 270 } |
271 }; | 271 }; |
272 this.updateLoading = function (progress) { | 272 this.updateLoading = function (progress) { |
273 // progress is a value from 0 to 100 indicating the current download state of media files | 273 // progress is a value from 0 to 100 indicating the current download state of media files |
274 if (label == "X" || label == "x") { | 274 if (progress != 100 && label.toLowerCase() != "x") { |
275 this.playback.textContent = "Play"; | |
276 } | |
277 if (progress != 100) { | |
278 progress = String(progress); | 275 progress = String(progress); |
279 progress = progress.split('.')[0]; | 276 progress = progress.split('.')[0]; |
280 this.playback.textContent = progress + '%'; | 277 this.playback.textContent = progress + '%'; |
281 } else { | 278 } else { |
282 this.playback.textContent = "Play"; | 279 this.playback.textContent = "Play"; |