vshepel / js_sliding-tree-DOM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  1. Replace <your_account> with your Github username in the link
  2. Follow this instructions
    • Run npm run test command to test your code;
    • Run npm run test:only -- -n to run fast test ignoring linter;
    • Run npm run test:only -- -l to run fast test with additional info in console ignoring linter.

Task: Sliding tree

Create an expandable tree.

Requirements:

  • Clicking on the headline should hide or show elements.
  • Clicking outside the title text (in an empty place) should do nothing.

Hint: you need to wrap each header text into span tag.

Do not change HTML or CSS in this task.

Screenshot of the tree

screenshot screenshot

About

License:GNU General Public License v3.0


Languages

Language:HTML 49.8%Language:JavaScript 38.9%Language:SCSS 11.3%