Browse Source

docs(pimp-my-style-dom): Fix wrong closing tags in examples

pull/1406/head
eslopfer 2 years ago
parent
commit
7af4701427
  1. 14
      subjects/pimp-my-style-dom/README.md

14
subjects/pimp-my-style-dom/README.md

@ -20,19 +20,19 @@ Write the body of that function so that the button's class is altered:
``` ```
Example for a `styles` array with only 3 classes: Example for a `styles` array with only 3 classes:
Page load --> <button class="button"></div> Page load --> <button class="button"></button>
...adding ...adding
Click 1 --> <button class="button one"></div> Click 1 --> <button class="button one"></button>
Click 2 --> <button class="button one two"></div> Click 2 --> <button class="button one two"></button>
...toggling `unpimp` ...toggling `unpimp`
Click 3 --> <button class="button one two three unpimp"></div> Click 3 --> <button class="button one two three unpimp"></button>
...and removing backwards ...and removing backwards
Click 4 --> <button class="button one two unpimp"></div> Click 4 --> <button class="button one two unpimp"></button>
Click 5 --> <button class="button one unpimp"></div> Click 5 --> <button class="button one unpimp"></button>
Click 6 --> <button class="button"></div> Click 6 --> <button class="button"></button>
``` ```
### Notions ### Notions

Loading…
Cancel
Save