s
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
body {
|
||||
width: 87%;
|
||||
width: 80%;
|
||||
margin: 0px auto;
|
||||
margin-top: 2%;
|
||||
background: #f5f5f5;
|
||||
|
||||
@@ -40,4 +40,7 @@ loadingTask.promise.then(function(pdf) {
|
||||
}, function (reason) {
|
||||
// PDF loading error
|
||||
console.error(reason);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -22,11 +22,11 @@
|
||||
<div id="zoomnav">
|
||||
<div class="zoompdf zoom-loop">🔍</div>
|
||||
<div class="zoompdf">
|
||||
<div onclick="pdfzoomin()">
|
||||
<span id="title_plus">+</span>
|
||||
<div id="title_plus" onclick="resize_plus()">
|
||||
<span >+</span>
|
||||
</div>
|
||||
<div onclick="pdfzoomout()">
|
||||
<span id="title_minus">–</span>
|
||||
<div id="title_minus" onclick="resize_minus()">
|
||||
<span>–</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user