1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

generated pages should work when js is disabled

This commit is contained in:
Lu Wang 2012-09-06 23:54:22 +08:00
parent ff728a52f8
commit d1d51787a8
2 changed files with 16 additions and 1 deletions

View File

@ -16,7 +16,7 @@
margin:13px auto;
background-color:white;
overflow:hidden;
display:none;
display:block;
}
.l {
position:absolute;

View File

@ -1,6 +1,7 @@
<!-- neck.html by WangLu 2012.08.15 -->
<title></title>
<script type="text/javascript">
/* show pages one by one asynchronously */
function show_pages()
{
var pages = document.getElementById('pdf-main').childNodes;
@ -19,5 +20,19 @@ function show_pages()
</script>
</head>
<body onload="show_pages();">
<script type="text/javascript">
/* hide all pages */
(function(){
var s = '.p{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);
})();
</script>
<div id="pdf-main">
<!-- neck.html END -->