Create CONTRIBUTING.md

I added the following to it:

- Bug reporting
- Feature requests
- Contributing guide
- Style guide
This commit is contained in:
Isiah Meadows 2015-11-07 06:34:11 -05:00 committed by impinball
parent df114a4ee2
commit 9fab2b8371
18 changed files with 1209 additions and 352 deletions

View file

@ -14,7 +14,7 @@ window.templateConverter = (function () {
return [
new DOMParser()
.parseFromString(markup, "text/html")
.childNodes[1]
.childNodes[1],
]
}
@ -39,7 +39,7 @@ window.templateConverter = (function () {
list.push({
tag: el.nodeName.toLowerCase(),
attrs: attrs,
children: createVirtual(el.childNodes)
children: createVirtual(el.childNodes),
})
}
})
@ -115,7 +115,7 @@ window.templateConverter = (function () {
var body = this.virtuals.join("," + tab)
return "[" + tab + body + tab.slice(0, -1) + "]"
}
}
},
}
return {
@ -134,12 +134,12 @@ window.templateConverter = (function () {
m("textarea", {
autofocus: true,
style: {width: "100%", height: "40%"},
onchange: m.withAttr("value", ctrl.source)
onchange: m.withAttr("value", ctrl.source),
}, ctrl.source()),
m("button", {onclick: ctrl.convert}, "Convert"),
m("textarea", {style: {width: "100%", height: "40%"}},
ctrl.output())
ctrl.output()),
])
}
},
}
})()