diff --git a/CMakeLists.txt b/CMakeLists.txt index 10698e0..d3dc377 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -136,6 +136,11 @@ add_executable(pdf2htmlEX target_link_libraries(pdf2htmlEX ${PDF2HTMLEX_LIBS}) install (TARGETS pdf2htmlEX DESTINATION bin) -file (GLOB datafiles share/*) +file (GLOB datafiles + share/base.css + share/jquery.js + share/pdf2htmlEX.js + share/manifest + ) install (FILES ${datafiles} DESTINATION share/pdf2htmlEX) install (FILES pdf2htmlEX.1 DESTINATION share/man/man1) diff --git a/share/base.css b/share/base.css index d4cdc7d..7db8e9f 100644 --- a/share/base.css +++ b/share/base.css @@ -1,8 +1,5 @@ /* Base CSS */ /* by Wang Lu */ -body { - position:relative; -} #pdf-main { position:absolute; top:0; @@ -25,6 +22,11 @@ body { background-color:white; overflow:hidden; display:block; + transform-origin:0% 0%; + -ms-transform-origin:0% 0%; + -moz-transform-origin:0% 0%; + -webkit-transform-origin:0% 0%; + -o-transform-origin:0% 0%; } .l { position:absolute; diff --git a/share/hide_pages.js b/share/hide_pages.js deleted file mode 100644 index 63e007c..0000000 --- a/share/hide_pages.js +++ /dev/null @@ -1,12 +0,0 @@ -/* hide all pages */ -(function(){ - var s = '.b{display:none;}'; - var n = document.createElement("style"); - n.type = "text/css"; - if (n.styleSheet) { - n.styleSheet.cssText = s; - } else { - n.appendChild(document.createTextNode(s)); - } - document.getElementsByTagName("head")[0].appendChild(n); -})(); diff --git a/share/manifest b/share/manifest index e5bf5aa..4013e13 100644 --- a/share/manifest +++ b/share/manifest @@ -24,7 +24,7 @@ @base.css $css @jquery.js -@hide_pages.js +@pdf2htmlEX.js """