aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/draw.js
blob: fadb3330b32d241d654ceaf65d6d4a8dfb5aaa80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$(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);
	
	if ($("#rev-container")) {
		$("#rev-container").css("width", document.body.clientWidth - document.getElementById('graph-canvas').width);
	}
})