1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-08 10:50:33 +00:00
This commit is contained in:
Lu Wang 2012-08-13 19:06:41 +08:00
parent aba9aa9cdd
commit cc92150784

View File

@ -51,18 +51,18 @@ const std::string HTML_HEAD = "<!DOCTYPE html>\n\
<script type=\"text/javascript\">\ <script type=\"text/javascript\">\
function show_pages()\ function show_pages()\
{\ {\
var pages = document.getElementById('pdf-main').childNodes;\ var pages = document.getElementById('pdf-main').childNodes;\
var idx = 0;\ var idx = 0;\
var f = function(){\ var f = function(){\
if (idx < pages.length) {\ if (idx < pages.length) {\
try{\ try{\
pages[idx].style.display='block';\ pages[idx].style.display='block';\
}catch(e){}\ }catch(e){}\
++idx;\ ++idx;\
setTimeout(f,100);\ setTimeout(f,100);\
}\ }\
};\ };\
f();\ f();\
};\ };\
</script>\ </script>\
</head><body onload=\"show_pages();\"><div id=\"pdf-main\">"; </head><body onload=\"show_pages();\"><div id=\"pdf-main\">";