Now with visible bridges.

This commit is contained in:
Edward Betts 2018-12-06 16:13:37 +00:00
parent d5c599c160
commit 6b86da3b51
2 changed files with 18 additions and 15 deletions

View file

@ -49,14 +49,17 @@
var get_span_path = "{{ url_for('.get_span') }}";
var docs = {{ docs | tojson }};
var link_count = {{ link_count | tojson }};
$(function() {
size_svg();
$(window).resize(size_svg);
reset(); // clear all documents and bridges
docs.forEach((doc, index) => {
fulfil(doc, index, docs.length, {{ link_count | tojson }});
fulfil(doc, index, docs.length);
create_bridges(link_count);
});
update();
});
</script>