strtotime hash pdf

This commit is contained in:
Andrey Kuvshinov
2020-04-29 22:19:45 +03:00
parent 0e0b9f9866
commit df0a374f42
4 changed files with 18 additions and 15 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);
}
@@ -135,20 +135,18 @@ function setzoom( cname, cvalue, exdays = 30 ) {
function startpdfviewer(newpdf){
function startpdfviewer(newcurr){
currpdf = getzoom("currpdf");
pdcurr = getzoom('pdcurr');
if (currpdf == newpdf){
czoom = getzoom("pdfscale");
if (pdcurr == newcurr){
czoom = getzoom('pdfscale');
if (czoom > 10) {
newpdfzoom(czoom);
}
}
else {
setzoom("currpdf", newpdf);
setzoom('pdcurr', newcurr);
}