Code Monkey home page Code Monkey logo

js-dom-dog-owners's Introduction

Dog Owners

In this exercise we practice using events and forms. This is a combo that you will find all the time when writing front-end applications. Your end result should be similar to below:

Result

Learning Objectives

  • Use event listeners to render dynamic content in response to a click event
  • Render dynamic content based on the contents of a submitted form

Instructions Part 1

  • Use the provided index.js as a starting point.
  • You'll find a variable called data in the console.log. That's your list of dogs
  • Render the top list of dogs using the list item template you'll find on the HTML file
  • Each list item should be clickable. When you click on an item, the selected dog should display on the main card
  • The main card should contain all the information from the selected dog. Follow the template for the main card that you'll find on the HTML file.
  • There should be only one card at the time on the screen

Instructions Part 2

  • When the plus button is clicked, it should replace the main card with a form to add a new dog to the list. You'll find a template for the form on the HTML page.
  • Once the form is submitted, add the new dog to the beginning of the list, right next to the plus button.

Extended

  • The dog card should have a button that toggles for the selected dog between good dog/ bad dog

js-dom-dog-owners's People

Contributors

mikemherron avatar dogezen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.