diff --git a/app/pub/scripts/klanviewer.js b/app/pub/scripts/klanviewer.js index c6c7588..475f1f1 100644 --- a/app/pub/scripts/klanviewer.js +++ b/app/pub/scripts/klanviewer.js @@ -19,7 +19,7 @@ function renderPage() { var context = canvas.getContext('2d'); //var viewport = page.getViewport({scale: scale}); - currscale = 0.5; + currscale = 1; var viewport = page.getViewport({scale: currscale}); // var viewport = page.getViewport(canvas.width / page.getViewport(0.5).width) @@ -165,7 +165,7 @@ function startpdfviewer(newcurr){ var detect = new MobileDetect(window.navigator.userAgent); - if (detect.phone()){ + if (!detect.phone()){ var canv = document.createElement('canvas'); canv.id = 'the-pdf'; diff --git a/app/views/layout.phtml b/app/views/layout.phtml index 86ab80b..2cb0cfb 100644 --- a/app/views/layout.phtml +++ b/app/views/layout.phtml @@ -4,7 +4,7 @@ "> - +