mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
..
This commit is contained in:
parent
82822c1879
commit
e11195e8f4
@ -50,13 +50,13 @@ $css
|
||||
# entry point of pdf2htmlEX.Viewer
|
||||
# You can override default configuration by passing an object to the constructor of Viewer
|
||||
# Refer to DEFAULT_CONFIG in viewer.js for possible keys
|
||||
# E.g.
|
||||
# new pdf2htmlEX.Viewer({ 'preload_pages' : 1 });
|
||||
@pdf2htmlEX.min.js
|
||||
"""
|
||||
<script>
|
||||
try{
|
||||
pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer();
|
||||
pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({
|
||||
'register_key_handler' : false
|
||||
});
|
||||
}catch(e){}
|
||||
</script>
|
||||
"""
|
||||
|
@ -186,11 +186,6 @@
|
||||
// for a lot of times(= #pages), just hope JIT works
|
||||
var rect_c = this.$container[0].getBoundingClientRect();
|
||||
return [rect_c.left-rect.left, rect_c.top-rect.top];
|
||||
/*
|
||||
var off = this.$p.offset();
|
||||
var off_c = this.$container.offset();
|
||||
return [off_c.left-off.left, off_c.top-off.top];
|
||||
*/
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user