Quantcast
Channel: MobileRead Forums - Conversion
Viewing all articles
Browse latest Browse all 3902

Creating headers from parent chapter and not section

$
0
0
Hi,
Converting .azw3 to PDF.

I need to get the parent chapter into a header but can't seem to be able to make it work using the JS like in the example

Code:

<header style="font-size:12px;">

<div style="display:inline-block;" class="even-page">
<div style="display:inline-block;width:1.2em;background-color: #f58234;">&nbsp;</div>
<div style="display:inline-block;" class="headertxteven">_TOP_LEVEL_SECTION_ _SECTION_</div>
<div style="display:inline-block;float:right;"><i>_PAGENUM_</i></div>
</div>

<script>
document.querySelector("div.headertxteven").innerHTML = document.querySelector("h1.chapterpTitle").innerHTML;
</script>

</header>

Any way to find a list of more global variables like bellow, or these are the only ones provided?

Code:

_TOP_LEVEL_SECTION_
_SECTION_
_PAGENUM_

Thanks plenty for this WONDERFUL software!

Viewing all articles
Browse latest Browse all 3902

Trending Articles