From 5c31d34edd144c4d0a6eb7eff4656da6dc1226a6 Mon Sep 17 00:00:00 2001 From: Zhuk Viatcheslav Date: Wed, 29 Apr 2020 14:41:23 +0300 Subject: [PATCH] s --- app/pub/css/an.css | 2 +- app/pub/scripts/anpdf.js | 5 ++++- app/pub/scripts/anviewer.js | 11 +++++++++++ app/views/anpdf2.phtml | 8 ++++---- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/app/pub/css/an.css b/app/pub/css/an.css index 30efb67..ac3f269 100644 --- a/app/pub/css/an.css +++ b/app/pub/css/an.css @@ -1,5 +1,5 @@ body { - width: 87%; + width: 80%; margin: 0px auto; margin-top: 2%; background: #f5f5f5; diff --git a/app/pub/scripts/anpdf.js b/app/pub/scripts/anpdf.js index d247a6e..8542e32 100644 --- a/app/pub/scripts/anpdf.js +++ b/app/pub/scripts/anpdf.js @@ -40,4 +40,7 @@ loadingTask.promise.then(function(pdf) { }, function (reason) { // PDF loading error console.error(reason); -}); \ No newline at end of file +}); + + + \ No newline at end of file diff --git a/app/pub/scripts/anviewer.js b/app/pub/scripts/anviewer.js index c4ede8a..670c157 100644 --- a/app/pub/scripts/anviewer.js +++ b/app/pub/scripts/anviewer.js @@ -75,6 +75,17 @@ function pdfzoomout(){ } +var cnt = 100; +function resize_plus(){ + var div = document.getElementById("the-canvas"); + cnt += 2; + div.style.width = cnt+"%"; +} +function resize_minus(){ + var div = document.getElementById("the-canvas"); + cnt -= 2; + div.style.width = cnt+"%"; +} function getzoom(){ var name = 'pdfscale'; diff --git a/app/views/anpdf2.phtml b/app/views/anpdf2.phtml index d8a08dc..227bd24 100644 --- a/app/views/anpdf2.phtml +++ b/app/views/anpdf2.phtml @@ -22,11 +22,11 @@
🔍
-
- + +
+ +
-
- +
+