Tweak code formatting and rephrase a sentence
This commit is contained in:
parent
8624d80eb8
commit
fdf7344fee
1 changed files with 23 additions and 27 deletions
50
index.html
50
index.html
|
@ -121,7 +121,7 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
If that sounds good, it's time to back up those claims!
|
Sounds good? Continue reading to find out how to try it yourself!
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
@ -252,14 +252,13 @@ component(myComponent) //Registers it as <my-component></code></pre>
|
||||||
|
|
||||||
<nyooom-showcase preview=false>
|
<nyooom-showcase preview=false>
|
||||||
<code>
|
<code>
|
||||||
<div contenteditable="false">return html.span(
|
<div contenteditable="false">return html.span({
|
||||||
{ dataset: {
|
dataset: {
|
||||||
from: "Fire",
|
from: "Fire",
|
||||||
to: "Heat",
|
to: "Heat",
|
||||||
snakeCase: "converted"
|
snakeCase: "converted"
|
||||||
} },
|
}
|
||||||
"Heat from Fire"
|
}, "Heat from Fire")</div>
|
||||||
)</div>
|
|
||||||
</code>
|
</code>
|
||||||
</nyooom-showcase>
|
</nyooom-showcase>
|
||||||
|
|
||||||
|
@ -269,13 +268,12 @@ component(myComponent) //Registers it as <my-component></code></pre>
|
||||||
|
|
||||||
<nyooom-showcase code=false>
|
<nyooom-showcase code=false>
|
||||||
<code>
|
<code>
|
||||||
<div contenteditable="false">return html.div(
|
<div contenteditable="false">return html.div({
|
||||||
{ shadowRoot: [
|
shadowRoot: [
|
||||||
html.p("Shadow DOM text"),
|
html.p("Shadow DOM text"),
|
||||||
"Arrays work too :)"
|
"Arrays work too :)"
|
||||||
]},
|
]
|
||||||
"Light DOM text"
|
}, "Light DOM text")</div>
|
||||||
)</div>
|
|
||||||
</code>
|
</code>
|
||||||
</nyooom-showcase>
|
</nyooom-showcase>
|
||||||
</section>
|
</section>
|
||||||
|
@ -365,22 +363,20 @@ return html.buttonGroup(
|
||||||
<nyooom-showcase code="false">
|
<nyooom-showcase code="false">
|
||||||
<code>
|
<code>
|
||||||
<div contenteditable="false">const task = value =>
|
<div contenteditable="false">const task = value =>
|
||||||
html.flexRow (
|
html.flexRow(
|
||||||
{class: "todo", gap: 1},
|
{ class: "todo", gap: 1 },
|
||||||
value,
|
value,
|
||||||
html.span("[x]", {
|
html.span("[x]", {
|
||||||
style: {
|
style: { cursor: "pointer" },
|
||||||
color: "var(--primary-6)",
|
click(event) {
|
||||||
cursor: "pointer"
|
event
|
||||||
},
|
.target
|
||||||
click(event) {
|
.closest(".todo")
|
||||||
event
|
.remove()
|
||||||
.target
|
}
|
||||||
.closest(".todo")
|
})
|
||||||
.remove()
|
)
|
||||||
}
|
|
||||||
})
|
|
||||||
)
|
|
||||||
let todo, input
|
let todo, input
|
||||||
return todo = html.flexColumn(
|
return todo = html.flexColumn(
|
||||||
{gap: 1},
|
{gap: 1},
|
||||||
|
|
Loading…
Reference in a new issue