8000 GitHub - slackhappy/Mr_Potato_Head
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

slackhappy/Mr_Potato_Head

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Directions for Mr. Potato Head

Imgur

  1. find slackhappy on github.com and find the Mr_Potato_Head repository: https://github.com/slackhappy/Mr_Potato_Head

  2. Fork the Repo

In Cloud 9:

  1. Create a new workspace by going to "Repositories" https://c9.io/account/repos. You should see Mr_Potato_Head. Click "Clone to Edit".
  2. Add your assigned body part to potatohead.html. All you need to do is add a src= tag for your body part in the html just like the "body" img. You can find the images you need right in the assets directory. Use "Preview" or "Run" to make sure you did it correctly. Don't add anyone else's body part, just your own.
  3. Once you are complete with the html, do the following steps:

Check that you modified the correct file

In Cloud 9 terminal:

 git status

You should see that potatohead.html is modified, like this:

	modified:   potatohead.html

Make a commit

Stage your changes in the index with git add ., then commit them. The string after -m in git commit is the commit message. Don't use "Commit message" as your message! Instead, say what you did, for example "added body part [your assigned body part]"

 git add .
 git commit -m "Commit message"  <<< but change the message!

Send this commit up to github

Push your local commit up to github

 git push origin master

look at your github: http://github.com/[myusername]/Mr_Potato_Head You should see the commit you just made! If you click "Commits" you can see the all of the work that has been put into Mr Potato Head, and you are at the top!

Make a pull request

From your GitHub create a "New Pull Request" (the green button) to send your changes to the instructor. The instructor will merge all of the changes (everyone's body parts), and at the end hopefully we'll have a whole Mr. Potato Head.

Bonus

  1. Update the body part image or css for your body part (see assets/potato.css). Stage, commit, push, and send another pull request!

  2. Update your repository with the instructors' changes:

[once]
git remote add upstream https://github.com/slackhappy/Mr_Potato_Head.git

[as needed]
git pull --rebase upstream master
  1. There is a click handler in potatohead.html. Right now, it just logs to the browser console. Can you make it do something cool?
  • In C9, click "Run" on potatohead.html and open up the link from the c9 console in a new tab
  • Press Option-Command-i to open the developer console.
  • Click on a part of the potato head, you should see the part logged in the console.
  • Can you do something more? Try animating a change to the height or width, for example.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 54.9%
  • CSS 45.1%
0