2ElmRuntime.Render.Utils = function() {
5function newElement(elementType) {
6 var e = document.createElement(elementType);
12function addTo(container, elem) {
13 container.appendChild(elem);
17 if (c._3 === 1) { return 'rgb(' + c._0 + ',' + c._1 + ',' + c._2 + ')'; }
18 return 'rgba(' + c._0 + ',' + c._1 + ',' + c._2 + ',' + c._3 + ')';
21function addTransform(style, trans) {
22 style.transform = trans;
23 style.msTransform = trans;
24 style.MozTransform = trans;
25 style.webkitTransform = trans;
26 style.OTransform = trans;
29function removeTransform(style) {
30 style.transform = 'none';
31 style.msTransform = 'none';
32 style.MozTransform = 'none';
33 style.webkitTransform = 'none';
34 style.OTransform = 'none';
37var List = Elm.Native.List({});
40 newElement:newElement,
42 fromList: List.toArray,
43 fromString: function(s) { return List.toArray(s).join(''); },
44 toString: List.fromArray,
45 eq: Elm.Native.Utils({}).eq,
46 addTransform: addTransform,
47 removeTransform: removeTransform
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