[Pkg-javascript-commits] [pdf.js] 25/119: Added the data-page-number dom attribute to the page rendered in the browser
David Prévot
taffit at moszumanska.debian.org
Wed May 13 21:27:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 6d8adb31ad5c4c9ed44b7ff3b1bff453a9e96411
Author: Mohamed Baig <mohamed.b.baig at gmail.com>
Date: Wed Mar 25 00:34:42 2015 -0400
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
---
web/pdf_page_view.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/web/pdf_page_view.js b/web/pdf_page_view.js
index 8e49cba..7e558ad 100644
--- a/web/pdf_page_view.js
+++ b/web/pdf_page_view.js
@@ -80,6 +80,7 @@ var PDFPageView = (function PDFPageViewClosure() {
div.className = 'page';
div.style.width = Math.floor(this.viewport.width) + 'px';
div.style.height = Math.floor(this.viewport.height) + 'px';
+ div.setAttribute('data-page-number', this.id);
this.div = div;
container.appendChild(div);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list