summaryrefslogtreecommitdiffstats
path: root/public/js/draw.js
blob: 518d1ec54548e68f7ae00177b167685373292dd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* globals gitGraph */

$(document).ready(function () {
	var graphList = [];

	if (!document.getElementById('graph-canvas')) {
		return;
	}

	$("#graph-raw-list li span.node-relation").each(function () {
		graphList.push($(this).text());
	})

	gitGraph(document.getElementById('graph-canvas'), graphList);
})