mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-05 09:38:40 +00:00
change design of pdf2htmlEX
This commit is contained in:
parent
0532ad4274
commit
f4613582e8
|
@ -28,7 +28,7 @@ $css
|
||||||
|
|
||||||
"""
|
"""
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
pdf2htmlEX.init('pdf-main');
|
new pdf2htmlEX('pdf-main');
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<title></title>
|
<title></title>
|
||||||
|
|
|
@ -91,11 +91,15 @@ var pdf2htmlEX = (function(){
|
||||||
return this.p.height();
|
return this.p.height();
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
var pdf2htmlEX = function(container_id) {
|
||||||
pages : [],
|
this.container_id = container_id;
|
||||||
container : null,
|
this.init_before_loading_content();
|
||||||
render_timer : null,
|
|
||||||
|
|
||||||
|
var _ = this;
|
||||||
|
$(function(){_.init_after_loading_content();});
|
||||||
|
};
|
||||||
|
|
||||||
|
$.extend(pdf2htmlEX.prototype, {
|
||||||
/* Constants */
|
/* Constants */
|
||||||
render_timeout : 200,
|
render_timeout : 200,
|
||||||
scale_step : 0.9,
|
scale_step : 0.9,
|
||||||
|
@ -127,15 +131,6 @@ var pdf2htmlEX = (function(){
|
||||||
this.render();
|
this.render();
|
||||||
},
|
},
|
||||||
|
|
||||||
init : function(container_id) {
|
|
||||||
this.container_id = container_id;
|
|
||||||
this.init_before_loading_content();
|
|
||||||
|
|
||||||
var _ = this;
|
|
||||||
$(function(){_.init_after_loading_content();});
|
|
||||||
|
|
||||||
return this;
|
|
||||||
},
|
|
||||||
|
|
||||||
pre_hide_pages : function() {
|
pre_hide_pages : function() {
|
||||||
/* pages might have not been loaded yet, so add a CSS rule */
|
/* pages might have not been loaded yet, so add a CSS rule */
|
||||||
|
@ -277,5 +272,7 @@ var pdf2htmlEX = (function(){
|
||||||
},
|
},
|
||||||
|
|
||||||
__last_member__ : 'no comma' /*,*/
|
__last_member__ : 'no comma' /*,*/
|
||||||
};
|
});
|
||||||
|
|
||||||
|
return pdf2htmlEX;
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user