Skip to content

Commit 9e97946

Browse files
committed
Add assets for graph
1 parent bf76828 commit 9e97946

File tree

4 files changed

+438
-0
lines changed

4 files changed

+438
-0
lines changed

public/css/gitgraph.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
body {font:13.34px/1.4 helvetica,arial,freesans,clean,sans-serif;}
2+
em {font-style:normal;}
3+
4+
#git-graph-container, #rel-container {float:left;}
5+
#git-graph-container {}
6+
#git-graph-container li {list-style-type:none;height:20px;line-height:20px;overflow:hidden;}
7+
#git-graph-container li .node-relation {font-family:'Bitstream Vera Sans Mono', 'Courier', monospace;}
8+
#git-graph-container li .author {color:#666666;}
9+
#git-graph-container li .time {color:#999999;font-size:80%}
10+
#git-graph-container li a {color:#000000;}
11+
#git-graph-container li a:hover {text-decoration:underline;}
12+
#git-graph-container li a em {color:#BB0000;border-bottom:1px dotted #BBBBBB;text-decoration:none;font-style:normal;}
13+
#rev-container {width:80%}
14+
#rev-list {margin:0;padding:0 5px 0 0;width:80%}
15+
#graph-raw-list {margin:0px;}

public/js/draw.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
$(document).ready(function () {
2+
var graphList = [];
3+
4+
if (!document.getElementById('graph-canvas')) {
5+
return;
6+
}
7+
8+
$("#graph-raw-list li span.node-relation").each(function () {
9+
graphList.push($(this).text());
10+
})
11+
12+
gitGraph(document.getElementById('graph-canvas'), graphList);
13+
14+
if ($("#rev-container")) {
15+
$("#rev-container").css("width", document.body.clientWidth - document.getElementById('graph-canvas').width);
16+
}
17+
})

0 commit comments

Comments
 (0)