portfolio iyo bissek
This commit is contained in:
parent
fc85403e3a
commit
044ce3f76b
147 changed files with 218 additions and 38 deletions
|
|
@ -6,6 +6,7 @@ class before extends Paged.Handler {
|
|||
|
||||
beforeParsed(content) {
|
||||
paragraphId(content);
|
||||
portfolioSpread(content);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -28,4 +29,14 @@ function paragraphId(content) {
|
|||
paragraph.dataset.uniqueId = id;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
function portfolioSpread(content){
|
||||
content.querySelectorAll('.portfolio-spread').forEach(block => {
|
||||
const clone = block.cloneNode(true);
|
||||
clone.classList.add('portfolio-spread-right');
|
||||
block.classList.add('portfolio-spread-left');
|
||||
block.parentNode.insertBefore(clone, block.nextSibling);
|
||||
});
|
||||
}
|
||||
|
|
@ -10,15 +10,13 @@ class followingNotes extends Paged.Handler {
|
|||
super(chunker, polisher, caller);
|
||||
this.notesClass = ".inline-note";
|
||||
this.newNotesClass = "following-note";
|
||||
// this.reset = this.parameters?.reset;
|
||||
this.reset = ".chapter";
|
||||
// this.align = this.parameters?.align;
|
||||
this.followingNoteOverflow = new Set();
|
||||
}
|
||||
|
||||
beforeParsed(content) {
|
||||
|
||||
console.log("floatnotes");
|
||||
|
||||
let newNotesClass = this.newNotesClass;
|
||||
resetCounter(content, this.reset, this.notesClass);
|
||||
createCallandMarker(content, this.notesClass, newNotesClass);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue