1
0
mirror of https://github.com/osmarks/website synced 2025-08-29 16:57:56 +00:00

achievements in heavpoot's game

This commit is contained in:
2020-07-03 21:11:23 +01:00
parent dee9035ffe
commit 060ac1001a
3 changed files with 20 additions and 3 deletions

View File

@@ -30,8 +30,6 @@ const handleTab = ev => {
}
}
const inputOnCreate = vnode => { vnode.dom.value = currentStyle }
const App = {
view: () => m("", [
m("em", "Due to browser limitations, this currently cannot tell you about errors or warnings in your stylesheet. You can check your browser console for these, probably."),
@@ -41,7 +39,7 @@ const App = {
m("button", { onclick: applyStyles }, "Apply"),
m("button", { onclick: removeStyles }, "Remove")
]),
m("textarea.style-input", { oncreate: inputOnCreate, oninput: ev => { currentStyle = ev.target.value }, onkeydown: handleTab }),
m("textarea.style-input", { oncreate: vnode => { vnode.dom.value = currentStyle }, oninput: ev => { currentStyle = ev.target.value }, onkeydown: handleTab }),
])
}