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

$(document).ready(function () {
	const 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);
})