Added the data-page-number dom attribute to the page rendered in the browser
Added data-page-id attribute to page container divs Updated the attribute with a better label
This commit is contained in:
parent
64d49e1397
commit
6d8adb31ad
@ -80,6 +80,7 @@ var PDFPageView = (function PDFPageViewClosure() {
|
|||||||
div.className = 'page';
|
div.className = 'page';
|
||||||
div.style.width = Math.floor(this.viewport.width) + 'px';
|
div.style.width = Math.floor(this.viewport.width) + 'px';
|
||||||
div.style.height = Math.floor(this.viewport.height) + 'px';
|
div.style.height = Math.floor(this.viewport.height) + 'px';
|
||||||
|
div.setAttribute('data-page-number', this.id);
|
||||||
this.div = div;
|
this.div = div;
|
||||||
|
|
||||||
container.appendChild(div);
|
container.appendChild(div);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user