diff --git a/app/views/posts/partials/show/_ugoira.html.erb b/app/views/posts/partials/show/_ugoira.html.erb index 6c2ad70ae..ff771b4bb 100644 --- a/app/views/posts/partials/show/_ugoira.html.erb +++ b/app/views/posts/partials/show/_ugoira.html.erb @@ -1,5 +1,5 @@ <%= content_tag( - :canvas, + :canvas, nil, :id => "image", :width => post.image_width, @@ -25,7 +25,7 @@

Loaded 0%

<%= button_tag "Play", :id => "ugoira-play", :style => "display: none;" %> - <%= button_tag "Pause", :id => "ugoira-pause" %> + <%= button_tag "Pause", :id => "ugoira-pause" %>
@@ -58,7 +58,7 @@ $(function() { Danbooru.Ugoira.create_player(); $(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) { if (state === 2) {