2019-05-15 23:57:47 -06:00
|
|
|
/* globals gitGraph */
|
|
|
|
|
2016-12-28 16:44:32 -07:00
|
|
|
$(document).ready(function () {
|
|
|
|
var graphList = [];
|
2019-05-15 23:57:47 -06:00
|
|
|
|
2016-12-28 16:44:32 -07:00
|
|
|
if (!document.getElementById('graph-canvas')) {
|
|
|
|
return;
|
|
|
|
}
|
2019-05-15 23:57:47 -06:00
|
|
|
|
2016-12-28 16:44:32 -07:00
|
|
|
$("#graph-raw-list li span.node-relation").each(function () {
|
|
|
|
graphList.push($(this).text());
|
|
|
|
})
|
2019-05-15 23:57:47 -06:00
|
|
|
|
2016-12-28 16:44:32 -07:00
|
|
|
gitGraph(document.getElementById('graph-canvas'), graphList);
|
|
|
|
})
|