add triplecate

This commit is contained in:
Julie Blanc 2026-03-10 14:17:49 +01:00
parent cc75afe344
commit 0d3afdc58d
34 changed files with 357 additions and 295 deletions

View file

@ -111,18 +111,18 @@ function createCallandMarker(content, notesClass, newNotesClass){
ref_note.innerHTML = num;
note.after(ref_note);
// marker + content note wrapped in body_note
// marker + content note wrapped in float-note_body
let marker_note = document.createElement('span');
marker_note.className = newNotesClass + "_marker";
marker_note.innerHTML = num + ". ";
let body_note = document.createElement('div');
body_note.className = 'body_note';
let noteBody = document.createElement('div');
noteBody.className = 'float-note_body';
while (note.firstChild) {
body_note.appendChild(note.firstChild);
noteBody.appendChild(note.firstChild);
}
body_note.prepend(marker_note);
note.appendChild(body_note);
noteBody.prepend(marker_note);
note.appendChild(noteBody);
});