mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
39 lines
817 B
HTML
39 lines
817 B
HTML
<!-- 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;
|
|
var idx = 0;
|
|
var f = function(){
|
|
if (idx < pages.length) {
|
|
try{
|
|
pages[idx].style.display='block';
|
|
}catch(e){}
|
|
++idx;
|
|
setTimeout(f,100);
|
|
}
|
|
};
|
|
f();
|
|
};
|
|
</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 -->
|