add reader lite

This commit is contained in:
arlemp@selectel.ru
2024-05-31 11:46:26 +03:00
parent 1ceb7ee85c
commit c033ac05d1
6 changed files with 155 additions and 94 deletions

View File

@@ -483,6 +483,26 @@ input[type="email"],input[type="password"], input[type="text"], input[type="tel"
font-size: 1.2em;
}
.footer-text{
margin-top:10px;
background: white;
border: 1px solid #dcdcdc;
padding: 10px;
font-size: .8em;
line-height: 17px;
}
embed[type="application/pdf"] {
display: block;
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
}
@media screen and (max-width: 1260px) {
.book_mini{
font-size: .9em;
@@ -599,6 +619,9 @@ input[type="email"],input[type="password"], input[type="text"], input[type="tel"
width: 100%;
font-size: 1.3em;
}
.zoomstatus{
display: none;
}
.firstpage{
margin-right: 15px!important;
}

View File

@@ -178,11 +178,11 @@ function startpdfviewer(newcurr){
embed = false;
}
else if (category == 3){
embed = true;
embed = false; //true;
}
if(isOpera){
embed = true;
embed = false;
}
if (detect.phone()){
@@ -191,7 +191,8 @@ function startpdfviewer(newcurr){
if (embed){
document.getElementById(pdfcanvas).innerHTML = '<embed src="'+ url +'" width="100%" type="application/pdf" style="height: 100vh;">';
//document.getElementById(pdfcanvas).innerHTML = '<embed src="'+ url +'" width="100%" type="application/pdf" style="height: 100vh;">';
document.getElementById(pdfcanvas).innerHTML = '<object data="'+ url +'" type="application/pdf" width="100%" height="100%" style="border: none;"><param name="toolbar" value="0"><param name="navpanes" value="0"><param name="view" value="FitH"></object>';
}
else {