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