Skip to content

Commit 6f26726

Browse files
committed
update main.js
1 parent 8a501b9 commit 6f26726

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

assets/js/main.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function ButtonSample() {
4646
};
4747

4848
const msg = pressed ? "on" : "off";
49-
const className = pressed ? "green" : "";
49+
const className = pressed ? "button-pressed" : "";
5050

5151
return html`
5252
<div>
@@ -81,7 +81,9 @@ function CheckboxSample() {
8181
${" "}
8282
<input type="checkbox" id="status-checkbox-input" onClick=${onClick} />
8383
84-
<p><i>${msg}</i></p>
84+
<p>
85+
<i>${msg}</i>
86+
</p>
8587
</div>
8688
`;
8789
}

0 commit comments

Comments
 (0)