X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=plack%2Flib%2FPlack%2FApp%2FBookReader.pm;fp=plack%2Flib%2FPlack%2FApp%2FBookReader.pm;h=5d649559a8c606e3da323e26396aac64058f54ab;hb=de54d7e88dc92a8b642dd198ab188776b36281cc;hp=119f6d1049d371b6fdac79bbb3d7a17d34978bbd;hpb=564a65d0e3b51adf3af6aebcb0b91c5e659b6d8d;p=bookreader.git diff --git a/plack/lib/Plack/App/BookReader.pm b/plack/lib/Plack/App/BookReader.pm index 119f6d1..5d64955 100644 --- a/plack/lib/Plack/App/BookReader.pm +++ b/plack/lib/Plack/App/BookReader.pm @@ -113,7 +113,7 @@ br.getPageURI = function(index, reduce, rotate) { // reduce and rotate are ignored in this simple implementation, but we // could e.g. look at reduce and load images from a different directory // or pass the information to an image server - var url = pages[index][0] + '?reduce='+reduce; + var url = pages[index][0] + '?reduce='+Math.round(reduce); console.debug('getPageURI', index, reduce, rotate, url); return url; }