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:
parent
ff728a52f8
commit
d1d51787a8
@ -16,7 +16,7 @@
|
||||
margin:13px auto;
|
||||
background-color:white;
|
||||
overflow:hidden;
|
||||
display:none;
|
||||
display:block;
|
||||
}
|
||||
.l {
|
||||
position:absolute;
|
||||
|
@ -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 -->
|
||||
|
Loading…
Reference in New Issue
Block a user