Compared Treehouse user data in a mock arcade game. Scraped online JSON files using AJAX Promises to asynchronously write and filter data on the DOM. Bootstrap, jQuery and Grunt used throughout. Truetype fonts and custom color scheme from background (Theme borrowed from Street Fighter II arcade game). Everything possible is in ES6.
- Pull down project
- cd into lib
- Run command "bower install"
- Run command "npm install"
- Beneath Load User A button are some invisible user names to copy/paste from. Otherwise 'mitchellblom' and 'krissycaron' will do the trick.
- Load users individually by using the buttons beside the input fields, or load both simultaneously with the center button Load Both.
- Click Fight to duel the users.
- Reset with the labelled button.
- Your site should have two inputs and a button
- In the inputs you type in a treehouse username and then hit the button
- Once the button is hit your code should
- Make ajax requests to treehouse and return the profile
- Example url = https://teamtreehouse.com/mitchellblom.json
- Use Promise.all to return the two profiles at the same time
- Display the profile pictures of the two profiles
- Display the profile picture for each of the two profiles
- Display the total number of points for each profile
- Pick the cage match winner - the person with the most points
- Clearly display who the winner is
- Display the winners badges
- Use jquery .animate method to apply animation to the images