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');
|
var svg_element = document.getElementById('svg');
|
||||||
|
|
||||||
new_document({'heading': 'xanadoc',
|
new_document({'heading': heading,
|
||||||
'text': doc.doc,
|
'text': doc.doc,
|
||||||
'doctype': 'xanadoc',
|
'doctype': 'xanadoc',
|
||||||
'index': index,
|
'index': index,
|
||||||
|
|
|
@ -52,11 +52,14 @@ var docs = {{ docs | tojson }};
|
||||||
var link_count = {{ link_count | tojson }};
|
var link_count = {{ link_count | tojson }};
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
size_svg();
|
size_svg();
|
||||||
$(window).resize(size_svg);
|
$(window).resize(size_svg);
|
||||||
reset(); // clear all documents and bridges
|
reset(); // clear all documents and bridges
|
||||||
|
headings = ["FORENOTE TO KINBOTE'S COMMENTARY",
|
||||||
|
'Canto One',
|
||||||
|
"CHARLES KINBOTE'S NOTES"];
|
||||||
docs.forEach((doc, index) => {
|
docs.forEach((doc, index) => {
|
||||||
fulfil(doc, index, docs.length);
|
fulfil(doc, index, docs.length, headings[index]);
|
||||||
});
|
});
|
||||||
create_bridges(link_count);
|
create_bridges(link_count);
|
||||||
add_handlers();
|
add_handlers();
|
||||||
|
|
Loading…
Reference in a new issue