From 6d4f73d0f6561611803c60d071138535620ed9ed Mon Sep 17 00:00:00 2001 From: Zhuk Viatcheslav Date: Thu, 30 Apr 2020 15:25:10 +0300 Subject: [PATCH] s --- app/pub/scripts/anviewer.js | 16 ++++++++++++---- app/views/layout.phtml | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) 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 @@ Еженедельник Аргументы Недели - <?=$title?> - +