js ver 27

This commit is contained in:
Andrey Kuvshinov
2020-04-29 21:28:45 +03:00
parent ea7ac3f846
commit 0e0b9f9866
2 changed files with 8 additions and 9 deletions

View File

@@ -97,10 +97,10 @@ function newpdfzoom(czoom){
var status = czoom+"%";
document.getElementById(pdfcanvas).style.width = status;
document.getElementById('zoomstatus').innerHTML = status;
document.getElementById("pdfcanvas").style.width = status;
document.getElementById("zoomstatus").innerHTML = status;
setzoom('pdfscale', czoom);
setzoom("pdfscale", czoom);
}
@@ -137,19 +137,18 @@ function setzoom( cname, cvalue, exdays = 30 ) {
function startpdfviewer(newpdf){
currpdf = getzoom('currpdf');
currpdf = getzoom("currpdf");
if (currpdf == newpdf){
czoom = getzoom('pdfscale');
if (czoom !== null & czoom > 10) {
czoom = getzoom("pdfscale");
if (czoom > 10) {
newpdfzoom(czoom);
}
}
else {
setzoom('currpdf', newpdf);
setzoom("currpdf", newpdf);
}