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

$(() => {
  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);
});