forked from 0x2620/pandora
load pdf at saved page
This commit is contained in:
parent
9a3c24b2ab
commit
fad6788638
1 changed files with 2 additions and 3 deletions
|
@ -59,10 +59,10 @@ Ox.PDFViewer = function(options, self) {
|
||||||
.attr({
|
.attr({
|
||||||
frameborder: 0,
|
frameborder: 0,
|
||||||
height: self.options.height + 'px',
|
height: self.options.height + 'px',
|
||||||
src: self.options.pdfjsURL + '?file=' + self.options.url,
|
src: self.options.pdfjsURL + '?file=' + self.options.url + '#page=' + self.options.page,
|
||||||
width: self.options.width + 'px'
|
width: self.options.width + 'px'
|
||||||
})
|
})
|
||||||
.onMessage(function(event, data) {
|
.onMessage(function(data, event) {
|
||||||
that.triggerEvent(event, data);
|
that.triggerEvent(event, data);
|
||||||
})
|
})
|
||||||
.appendTo(that);
|
.appendTo(that);
|
||||||
|
@ -77,7 +77,6 @@ Ox.PDFViewer = function(options, self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateSize() {
|
function updateSize() {
|
||||||
console.log('updateSize', self.options.width, self.options.height);
|
|
||||||
that.css({
|
that.css({
|
||||||
height: self.options.height + 'px',
|
height: self.options.height + 'px',
|
||||||
width: self.options.width + 'px',
|
width: self.options.width + 'px',
|
||||||
|
|
Loading…
Reference in a new issue