diff --git a/app/pub/scripts/anviewer.js b/app/pub/scripts/anviewer.js index 04ee648..c561c27 100644 --- a/app/pub/scripts/anviewer.js +++ b/app/pub/scripts/anviewer.js @@ -83,13 +83,23 @@ function pdfzoomout(){ function resize_plus(){ - cnt += 5; + if (window.screen.width >= 560) { + cnt += 5; + } + else{ + cnt += 20; + } newpdfzoom(cnt); } function resize_minus(){ - cnt -= 5; + if (window.screen.width >= 560) { + cnt -= 5; + } + else{ + cnt -= 20; + } newpdfzoom(cnt); } @@ -104,8 +114,6 @@ function newpdfzoom(czoom){ } - - function getzoom( name ){ diff --git a/app/views/layout.phtml b/app/views/layout.phtml index d2e6541..b1c310c 100644 --- a/app/views/layout.phtml +++ b/app/views/layout.phtml @@ -2,7 +2,7 @@