Skip to content

Commit

Permalink
documentation is hard
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzypants1989 committed Oct 20, 2023
1 parent 1836d6e commit f4ce7fd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,17 @@ const display = $(".display")

button.on("click", () => {
display
.if(
() => display.textContent === "Click me!",
(el) => el.text("Clicked!"),
(el) => el.text("I'm already clicked!")
)
.if({
is: (el) => el.textContent === "Click me!",
then: (el) => el.text("Clicked!").css("color", "green"),
else: (el) => el.text("Click me!").css("color", "red"),
})
.wait(1000)
.if(
() => display.textContent === "Clicked!",
(el) => el.text("Click me!"),
(el) => el.text("I'm already clicked!")
)
.if({
is: (el) => el.textContent === "Clicked!",
then: (el) => el.text("Click me!").css("color", "red"),
else: (el) => el.text("Clicked!").css("color", "green"),
})
})
```

Expand Down

0 comments on commit f4ce7fd

Please sign in to comment.