/03-jquery-with-events

Class 3 lab assignment will be published here

Primary LanguageJavaScript

CF Lab 03: jQuery and events

Code of Conduct

Submission Instructions

When you are finished with lab, follow these steps to submit your work. Create one Pull Request (aka: "PR") from your Forked repo to the CF repo with your changes, and you'll each submit that same PR link in Canvas.

  1. Ensure that all your local changes are committed, and pushed to your origin repo.
  2. Visit the origin repo on github.com, and ensure that all of your completed work has been merged to master via Pull Requests within your repo.
  3. Create a new PR from your Fork to the CF repo and ensure the branches look correct.
  4. Fill in the template based on the text box prompts:
  5. Write a good descriptive summary of your changes: 1. Be sure to include how much time you spent on it, and who you worked with. 1. Briefly reflect on and summarize your process.
  6. When you create the PR, it will have a unique URL. Copy this link, share with your partner, and paste it into the assignment submission form in Canvas. Both the driver and the navigator will submit the same PR link.

Learning Objectives

  • Execute event bindings with jQuery’s .on() method.
  • Comprehend when event delegation is appropriate.
  • Be able to configure event bindings using delegation.
  • Familiarity with data-<attributes> & string concatenation.
  • Build dynamic jQuery selector strings.
  • Use of $(document).ready()
  • Integration of icon fonts through the use of IcoMoon.

Resources

jQuery API Reference


Feature Tasks

  1. Add any new script tags to your HTML.
  2. Complete the new requirements for setting data-<attributes> in your toHtml() method.
  3. Review and understand the new JS file, articleView.js
  4. Complete the methods for handling filter events when selecting an option from a drop down menu via Authors and Categories.
  5. Complete the method for handling tab-based event navigation on the page.
  6. Add an event to reveal a complete article if the user would like to see more than just a two-line teaser.

Stretch Goal

  • After implementing the "Read On ->" link that shows the remainder of an article beyond the teaser, change the text of the link to "Show Less <-" and hide everything but the teaser.

Rubric

Criteria Pts
Meets all Assignment Reqs 6
Uses idiomatic code style 3
Follows proper Git workflow 1
Total 10