This commit is contained in:
Zhuk Viatcheslav
2020-04-30 15:25:39 +03:00
5 changed files with 33 additions and 19 deletions

View File

@@ -108,7 +108,8 @@ function newpdfzoom(czoom){
var status = czoom+"%";
document.getElementById(pdfcanvas).style.width = status;
document.getElementById('zoomstatus').innerHTML = status;
document.getElementById('zoomstatus_up').innerHTML = status;
//document.getElementById('zoomstatus_down').innerHTML = status;
setzoom('pdfscale', czoom);
@@ -143,24 +144,20 @@ function setzoom( cname, cvalue, exdays = 30 ) {
function startpdfviewer(newpdf){
function startpdfviewer(newcurr){
var div = document.getElementById(pdfcanvas);
currpdf = getzoom('currpdf');
pdcurr = getzoom('pdcurr');
if (currpdf !== null & currpdf !== newpdf){
if (pdcurr == newcurr){
czoom = getzoom('pdfscale');
if (czoom != null & czoom > 10) {
if (czoom > 10) {
cnt = czoom;
newpdfzoom(czoom);
}
}
else {
setzoom('currpdf', newpdf);
setzoom('pdcurr', newcurr);
setzoom('pdfscale', 100);
}