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) {
15 name = Elm.JavaScript.castStringToJSString(name);
16 return addStyle('font-family', name);
18 var size = function(px) {
19 return addStyle('font-size', px + 'px');
21 var header = addTag('h1');
22 var height = function(h) { return addStyle('font-size', h+'em'); }
23 var italic = addStyle('font-style', 'italic');
24 var bold = addTag('b');
25 var color = function(c) {
26 return addStyle('color', Elm.Color.extract(c));
28 var underline = addStyle('text-decoration', 'underline');
29 var overline = addStyle('text-decoration', 'overline');
30 var strikeThrough = addStyle('text-decoration', 'line-through');
31 var link = function(href) { return function(text) {
32 return "<a href='" + fromString(href) + "'>" + text + "</a>";
36 return {fromString : fromString,
42 underline : underline,
44 strikeThrough : strikeThrough,
45 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