This commit is contained in:
Lu Wang 2013-11-07 16:11:58 +08:00
parent 3d958ab643
commit d6723bef50
4 changed files with 15 additions and 16 deletions

View File

@ -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
View File

@ -1,6 +1,3 @@
bind
undefined vs null
enable global key handler
link handling + scale
more information on demo page:

View File

@ -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>
"""

View File

@ -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