Giter VIP home page Giter VIP logo

profile-model's Introduction

GitHub Profile

Description

Mimic the behavior of a GitHub-like profile page. When the user profile information is changed, the change should be reflected in the UI.

Objectives

Learning Objectives

After completing this assignment, you should…

  • Understand how to use models
  • Understand how to listen for events on models

Performance Objectives

After completing this assignment, you be able to effectively use

  • Backbone.Model.extend
  • Model get and set methods (getters and setters)

Details

Deliverables

  • A repo containing at least:
    • dist/scripts/main.js
    • dist/scripts/models/user.js
    • dist/styles/styles.css
    • dist/index.html

Requirements

  • No JSHint warnings or errors
  • You cannot modify any HTML from within your jQuery event handlers. This must all be done by listening for events on your model.

Normal Mode

Fork and then clone this repository. Modify the HTML and JavaScript inside of the dist directory to implement the following behavior:

  1. When a user clicks on the "Home" link in the navbar they should be taken to the home page (the one with lorem ipsum).

  2. When a user clicks on the "Edit Profile" link in the left sidebar or the navigation dropdown they should be taken to the edit profile page (the one with the form).

  3. When a user visits the edit profile page, the form values should be set to the value that are stored in your user model.

  4. When a user clicks save on the edit profile page, the current information in the form should be saved back to the user model. This should cause the UI to be updated with that information. Remember that you can't change any HTML directly from the jQuery events (ie. submit, click, keyup, etc).

Hard Mode

  1. When a user saves new profile information, it should be saved to tiny pizza server and when you refresh the page, that information should be loaded from the server and displayed on the screen.

Notes

Hint: You will want to use event listeners on your model.

Additional Resources

profile-model's People

Contributors

awg24 avatar

Watchers

James Cloos avatar  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.