3 function fromString(s) { return Value.toText(s); }
5 var addTag = function(tag) { return function(text) {
6 return '<' + tag + ' style="padding:0;margin:0">' + text + '</' + tag + '>';
9 var addStyle = function(style, value) { return function(text) {
10 return "<span style='" + style + ":" + value + "'>" + text + "</span>";
14 var typeface = function(name) { return addStyle('font-family', name); };
15 var size = function(px) {
16 return addStyle('font-size', px + 'px');
18 var header = addTag('h1');
19 var height = function(h) { return addStyle('font-size', h+'em'); }
20 var italic = addStyle('font-style', 'italic');
21 var bold = addTag('b');
22 var color = function(c) {
23 return addStyle('color', Color.Internal.extract(c));
25 var underline = addStyle('text-decoration', 'underline');
26 var overline = addStyle('text-decoration', 'overline');
27 var strikeThrough = addStyle('text-decoration', 'line-through');
28 var link = function(href) { return function(text) {
29 return "<a href='" + fromString(href) + "'>" + text + "</a>";
33 return {fromString : fromString,
39 underline : underline,
41 strikeThrough : strikeThrough,
42 monospace : typeface('monospace'),
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list