|
60 | 60 | * body text.
|
61 | 61 | *
|
62 | 62 | * enableFrontmatter: true -- This resolves whether a table of contents, page\
|
63 |
| - * headers and other frontmatter contents should be added upon page creation. |
| 63 | + * headers and other frontmatter contents should be added upon page creation. |
| 64 | + * Note: divideContents has to be true if one wants the frontmatter to render. |
64 | 65 | *
|
65 | 66 | * bulkPagesToAdd: 50 -- This is the initial number of pages of each flowable
|
66 | 67 | * part (section, chapter). After this number is added, adjustments are made by
|
|
77 | 78 | *
|
78 | 79 | * frontmatterContents: none -- These are the HTML contents that are added to
|
79 | 80 | * the frontmatter before the table of contents. This would usually be a title
|
80 |
| - * page and a copyright page, including page breaks. |
| 81 | + * page and a copyright page, including page breaks. |
81 | 82 | *
|
82 | 83 | * autoStart: true -- This controls whether pagination should be executed
|
83 | 84 | * automatically upon page load. If it is set to false, pagination has to be
|
|
93 | 94 | * up less space than this, there is no need to do this division. The added
|
94 | 95 | * benefit of not doing it is that the original DOM of the part that contains
|
95 | 96 | * the conents will not be modified. Only the container element that holds the
|
96 |
| - * contents will be assigned another CSS class. |
| 97 | + * contents will be assigned another CSS class. Note: divideContents has to be |
| 98 | + * true if one wants the frontmatter to render. |
97 | 99 | *
|
98 | 100 | * Page style options
|
99 | 101 | *
|
@@ -735,7 +737,7 @@ Pagination.applyBookLayout = function () {
|
735 | 737 | fmObject = new Pagination.flowObject(
|
736 | 738 | 'pagination-frontmatter',
|
737 | 739 | Pagination.pageCounters.roman,
|
738 |
| - 1 |
| 740 | + false |
739 | 741 | );
|
740 | 742 | fmObject.columns = 1;
|
741 | 743 | contentsDiv.insertBefore(fmObject.rawdiv, contentsDiv.firstChild);
|
@@ -830,6 +832,8 @@ Pagination.flowObject = function (name, pageCounter, rawdiv) {
|
830 | 832 | } else {
|
831 | 833 | this.rawdiv = document.createElement('div');
|
832 | 834 | }
|
| 835 | +console.log(rawdiv); |
| 836 | +console.log(this.rawdiv); |
833 | 837 | this.rawdiv.classList.add(name + '-contents');
|
834 | 838 | this.rawdiv.classList.add('pagination-contents-item');
|
835 | 839 |
|
|
0 commit comments