For some reason when I use the progress bar the percentage on the right of the bar is being combined with a constant “0%”. See this screenshot. Here the value is 82% but there’s also a 0% overlapping.
So I looked in the developer console and I saw that there were two spans, with the “mbsc-progress-value” class. In this screenshot you can see that there’s one at 79% and the other still at 0%.
Why would this be happening?
Here’s my HTML
<div id=previewvideoprompt class='mbsc-cloak'>
<div class='mbsc-align-center'>
<label class='mbsc-progress-primary'>Uploading video...<progress id=video-progress mbsc-progress max='100' data-val='right'></progress></label>
</div>
</div>
And here is my javascript.
function videoUploadProgress(e) { // upload process in progress
if (e.lengthComputable) {
var iPercentComplete = Math.round(e.loaded * 100 / e.total);
var inst = $('#video-progress').mobiscroll4('getInst');
inst.setVal(iPercentComplete);
} else {
//document.getElementById('video-progresslabel').innerHTML = 'Unable to compute';
}
}