diff options
Diffstat (limited to 'web_src/js')
-rw-r--r-- | web_src/js/draw.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/web_src/js/draw.js b/web_src/js/draw.js new file mode 100644 index 0000000000..bb9c7f28c7 --- /dev/null +++ b/web_src/js/draw.js @@ -0,0 +1,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); +}); |