jquery.html5loader icon indicating copy to clipboard operation
jquery.html5loader copied to clipboard

Percentage update

Open questionablequestion opened this issue 7 years ago • 1 comments

Hello,

I have let's say one image to preload, percentage goes 0 - 100, is it possible to have it goes like 0 - 37 - 52 - 84 - 100...

I hope you understand me :) Thanks

questionablequestion avatar Sep 22 '16 13:09 questionablequestion

I did it something like this, just add an element in your preload div area and update it on the fly.

<div class="pg-loading-screen">
<p class="percent"></p>
</div>
$.html5Loader({
     onUpdate: function ( percentage ) {
	$('.pg-loading-screen .percent').html(percentage);
     }
});

SammyB avatar Jun 05 '17 00:06 SammyB