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