Skip to content

xtbc18s2/spellbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spellbook

Day 4 Homework

  • Do whatever practice is necessary to better understand the topics we've covered this week.

  • Try the official React Tutorial

Bonus Credit

  • Continue to enhance the Spellbook project. For example, make spells editable (look up contentEditable).

Super Mega Bonus Credit

  • Have a great weekend!

Day 3 Homework

  • In addition to building a list item and adding it to the DOM (as we are now), also store each spell in an array.

Bonus Credit

  • Add a delete button to each list item that removes it from the list.

Super Mega Bonus Credit

  • Remove the item from the array as well.

Day 2 Homework

  • Add a second field of your choice to the form.

Bonus Credit

Look up document.createElement and appendChild, and try adding the list items that way, instead of with innerHTML.

Super Mega Bonus Credit

Display each value in the list item (the name, whatever other field you add) in separate elements, and style them differently somehow.

For example:

<li>
  <span class="spellName">Fireball</span>
  <span class="level">lvl 4</span>
</li>

Super Mega Bonus Credit Hyper Fighting

  • Build each new element (the li, each span, etc.) in separate functions.

Day 1 Homework

  • Make the button change the text of the heading (the <h1>).

Bonus Credit

  • Add multiple headings to the page, and make the button change the second one. (Use a class or an id.)

Super Mega Bonus Credit

  • Add a form to the page.
  • Add a text input to the form.
  • When the form is submitted, update the heading with the text that you type in the text input.

Super Mega Bonus Credit Hyper Fighting

  • Make sure it works when you press enter on the keyboard, not just when you click the button.

Releases

No releases published

Packages

No packages published