Override xanadoc titles.
This commit is contained in:
parent
ba9adc4b26
commit
20edacc985
|
@ -280,10 +280,10 @@ function create_bridges(link_count) {
|
|||
|
||||
}
|
||||
|
||||
function fulfil(doc, index, doc_count) {
|
||||
function fulfil(doc, index, doc_count, heading) {
|
||||
var svg_element = document.getElementById('svg');
|
||||
|
||||
new_document({'heading': 'xanadoc',
|
||||
new_document({'heading': heading,
|
||||
'text': doc.doc,
|
||||
'doctype': 'xanadoc',
|
||||
'index': index,
|
||||
|
|
|
@ -52,11 +52,14 @@ var docs = {{ docs | tojson }};
|
|||
var link_count = {{ link_count | tojson }};
|
||||
|
||||
$(function() {
|
||||
size_svg();
|
||||
$(window).resize(size_svg);
|
||||
reset(); // clear all documents and bridges
|
||||
size_svg();
|
||||
$(window).resize(size_svg);
|
||||
reset(); // clear all documents and bridges
|
||||
headings = ["FORENOTE TO KINBOTE'S COMMENTARY",
|
||||
'Canto One',
|
||||
"CHARLES KINBOTE'S NOTES"];
|
||||
docs.forEach((doc, index) => {
|
||||
fulfil(doc, index, docs.length);
|
||||
fulfil(doc, index, docs.length, headings[index]);
|
||||
});
|
||||
create_bridges(link_count);
|
||||
add_handlers();
|
||||
|
|
Loading…
Reference in a new issue