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