Giter VIP home page Giter VIP logo

fewd22-assignment5's Introduction

#FEWD Week #5: JavaScript Basics


###Description

The team from Relaxr is back...again! They want their page to be more interactive and asked you to add JavaScript to their source code. You've been given the HTML and CSS but will need to create a JavaScript file and add a few different pieces of interactivity: Users should be able to click a link and have the remainder of the blog's content slide down and appear on the page, both on the main content column and the side bar; users should also be able hide the content when they are finished reading. See a detailed technical explanation below.


###Real-World Applications

  • Practice programmatic thinking to plan before writing code
  • Use basic JavaScript to create an interactive page based on a user action
  • Link an external JavaScript file from HTML

###Technical Requirements

  • Add jQuery and index.js script tags to index.html

  • Use the $.ready() handler to delay your code from executing until all DOM assets have been loaded

  • Select the appropriate DOM elements with CSS selectors upon a user's click using the $.click() handler

  • If a user clicks "Read More" on the primary column:

    • have the text in the <p> tag slide down along with a "Read Less" link in the blog post using $.slideDown() and $.show()
    • hide the "Read More" link using $.hide()
  • If a user clicks "Read Less" on the primary column:

    • have the <p> slide up and hide the "Read Less" link using $.slideUp() and $.hide()
    • show the "Read More" link using $.show()
  • Using the same functions as above, if a user clicks the "Learn More" link in the sidebar, have the <span> inside that <p> slide down and hide the "Learn More" link using $.slideDown() and $.hide()


###BONUS/Extra

Get more practice with jQuery DOM selectors


###Resources


###Submission

  1. "Fork" this repository
  2. "Clone" your fork into the GitHub Desktop app
  3. Complete the assignment
  4. Commit changes and push them back to GitHub (sync)
  5. Submit a "pull request" to the "upstream" project

###Evaluation

Instructional team should evaluate against the solution code and the student's use of technical elements. They will provide a numeric grade on a scale: does not meet expectations (0); meets expectations (1); exceeds expectations (2). Note: If bullets have child bullets, grade the child bullets and not the parent bullet belonging to the child. The maximum possible score on this assignment is 16/16. Bonus materials are completely optional.


###Final Project Milestone 1

By this week, you should have created and handed in wireframes that sketch out your idea and basic design for a final project.

fewd22-assignment5's People

Contributors

jacobdfriedmann avatar kchiang11 avatar

Watchers

 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.