start a real index page for traditions
[scpubgit/stemmatology.git] / stemmaweb / root / js / componentload.js
diff --git a/stemmaweb/root/js/componentload.js b/stemmaweb/root/js/componentload.js
new file mode 100644 (file)
index 0000000..c5e5d3c
--- /dev/null
@@ -0,0 +1,6 @@
+function loadTradition( textid ) {
+       $('#stemma_graph').load( "stemma/" + textid );
+       $('#stemma_graph > svg').width('485px');
+       $('#variant_graph').load( "variantgraph/" + textid );
+       $('#variant_graph > svg').height('300px');
+}
\ No newline at end of file