Second edit. Completely deleted original as I've gotten somewhere digging into the meat of the documentation while waiting for response.
I'm working on adapting the endnote implementation at https://css4.pub/2015/usenix/example.html to meet my own needs, but, I've run into a problem (my javascript is apparently even more rusty than I thought).
I'm trying to have my endnotes get put at the end of the chapter they appear in, with each chapter in it's own <article>. This means I can't use hardcoded element ids (and, if I wanted to make this reusable without rewriting the script for each document, I'd want to avoid that as well), but, I'm also not entirely sure how to accomplish the moves into the correct container without hardcoded id's. Is there another example that maybe shows endnotes at chapter end, with multiple chapters that I can look at to have an idea how to go about this? Or, maybe a clue to where to look within general javascript references for how to do this?
I'm working on adapting the endnote implementation at https://css4.pub/2015/usenix/example.html to meet my own needs, but, I've run into a problem (my javascript is apparently even more rusty than I thought).
I'm trying to have my endnotes get put at the end of the chapter they appear in, with each chapter in it's own <article>. This means I can't use hardcoded element ids (and, if I wanted to make this reusable without rewriting the script for each document, I'd want to avoid that as well), but, I'm also not entirely sure how to accomplish the moves into the correct container without hardcoded id's. Is there another example that maybe shows endnotes at chapter end, with multiple chapters that I can look at to have an idea how to go about this? Or, maybe a clue to where to look within general javascript references for how to do this?
Edited by nightshift