4 function fromString(s) { return Value.toText(s); }
6 var addTag = function(tag) { return function(text) {
7 return '<' + tag + ' style="padding:0;margin:0">' + text + '</' + tag + '>';
10 var addStyle = function(style, value) { return function(text) {
11 return "<span style='" + style + ":" + value + "'>" + text + "</span>";
15 var typeface = function(name) {
16 name = Elm.JavaScript.castStringToJSString(name);
17 return addStyle('font-family', name);
19 var size = function(px) {
20 return addStyle('font-size', px + 'px');
22 var header = addTag('h1');
23 var height = function(h) { return addStyle('font-size', h+'em'); }
24 var italic = addStyle('font-style', 'italic');
25 var bold = addTag('b');
26 var color = function(c) {
27 return addStyle('color', Elm.Color.extract(c));
29 var underline = addStyle('text-decoration', 'underline');
30 var overline = addStyle('text-decoration', 'overline');
31 var strikeThrough = addStyle('text-decoration', 'line-through');
32 var link = function(href) { return function(text) {
33 return "<a href='" + fromString(href) + "'>" + text + "</a>";
37 return {fromString : fromString,
43 underline : underline,
45 strikeThrough : strikeThrough,
46 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