This commit is contained in:
Toks
2014-10-28 12:08:34 -04:00
parent 4878f39e45
commit 999196cd1a

View File

@@ -58,7 +58,7 @@
$(function() { $(function() {
Danbooru.Ugoira.create_player(); Danbooru.Ugoira.create_player();
$(Danbooru.Ugoira.player).on("loadProgress", function(ev, progress) { $(Danbooru.Ugoira.player).on("loadProgress", function(ev, progress) {
$("#ugoira-load-percentage").val(progress * 100); $("#ugoira-load-percentage").text(Math.floor(progress * 100));
}); });
$(Danbooru.Ugoira.player).on("loadingStateChanged", function(ev, state) { $(Danbooru.Ugoira.player).on("loadingStateChanged", function(ev, state) {
if (state === 2) { if (state === 2) {