mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-21 12:40:08 +00:00
..
This commit is contained in:
parent
3d958ab643
commit
d6723bef50
@ -1,6 +1,10 @@
|
||||
Developing v0.11
|
||||
|
||||
* Compress JS with closure-compiler
|
||||
* Compress CSS with YUI Compressor
|
||||
* Remove jQuery
|
||||
* Lots of JS code cleaning
|
||||
* Enable global key handler by default
|
||||
|
||||
v0.10
|
||||
2013.10.17
|
||||
|
3
TODO
3
TODO
@ -1,6 +1,3 @@
|
||||
bind
|
||||
undefined vs null
|
||||
enable global key handler
|
||||
link handling + scale
|
||||
|
||||
more information on demo page:
|
||||
|
@ -44,13 +44,15 @@ $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.
|
||||
# pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({
|
||||
# 'register_key_handler' : false
|
||||
# });
|
||||
@pdf2htmlEX.min.js
|
||||
"""
|
||||
<script>
|
||||
try{
|
||||
pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({
|
||||
'register_key_handler' : false
|
||||
});
|
||||
pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({});
|
||||
}catch(e){}
|
||||
</script>
|
||||
"""
|
||||
|
@ -276,7 +276,6 @@
|
||||
|
||||
this.find_pages();
|
||||
|
||||
|
||||
// disable dragging of background images
|
||||
disable_dragstart(document.getElementsByClassName(CSS_CLASS_NAMES.background_image));
|
||||
|
||||
@ -291,12 +290,9 @@
|
||||
}, false);
|
||||
|
||||
// handle links
|
||||
this.container.addEventListener('click', function(e) {
|
||||
_.link_handler(e);
|
||||
}, false);
|
||||
this.outline.addEventListener('click', function(e) {
|
||||
_.link_handler(e);
|
||||
}, false);
|
||||
[this.container, this.outline].forEach(funciton(ele) {
|
||||
ele.addEventListener('click', _.link_handler.bind(_), false);
|
||||
});
|
||||
|
||||
this.render();
|
||||
},
|
||||
@ -547,8 +543,8 @@
|
||||
},
|
||||
|
||||
// TODO
|
||||
get_next_page : function() { return undefined; },
|
||||
get_prev_page : function() { return undefined; },
|
||||
get_next_page : function() { return null; },
|
||||
get_prev_page : function() { return null; },
|
||||
|
||||
/**
|
||||
* @param{number} ratio
|
||||
@ -628,7 +624,7 @@
|
||||
if (pl[i].is_visible())
|
||||
return pl[i];
|
||||
}
|
||||
return;
|
||||
return null;
|
||||
},
|
||||
/**
|
||||
* @param{Node} ele
|
||||
|
Loading…
Reference in New Issue
Block a user