Coder Social home page Coder Social logo

twitter-clone's Introduction

Twitter Clone

##Objective Use jQuery to create a "clone" that mimicks how the Twitter web application functions

Use this repo as the starting point for the Twitter clone project:

![alt text](https://github.com/DevMountain/twitter-clone/blob/master/Twitter%20Clone%20Example.png?raw=true,"Twitter Clone Example")

Part One

Part Two

  • The Retweets/timestamp/Reply areas should also be hidden by default. These should only expand if you click on the tweet. Have the students use a jQuery animation to accomplish the reveal, similar to how it’s done on Twitter.com

Black Diamond

  • Make timestamps similar to how they look on Twitter (1h, 18m, 1m) and use the jQuery "timeago" plugin to make them automatic.
  • Implement the icons for when a tweet is favorited/retweeted in the upper right of the tweet.
  • Clicking favorite should increase the favorite count.
  • Clicking retweet should increase the retweet count and take the text of the tweet and retweet it.
  • Implement the Bootstrap tooltips for when you hover over a user’s avatar image
  • Persist new tweets using local storage
  • Persist new tweets using a service like firebase https://firebase.google.com/

Here's a list of the jQuery 'Need to Knows'

Window Ready Event

  • $(function () {});
    • also $(document).ready(function(){});

Selectors

Events

Create Element

Manipulate Elements

  • $('.some-class').text("my <script>-safe text");
  • $('.some-class').val(); //input, textarea, select
  • $('.some-class').prop('checked'); // checkbox
  • $('.some-class').show();
  • $('.some-class').hide();
  • $('.some-class').prepend($myNewElement);
  • $('.some-class').append($myNewElement);
    • also $myNewElement.appendTo($('.some-class'));
  • $('.some-class').remove();;
  • $(this).addClass('.style-class');
  • $(this).removeClass('.style-class');
  • $(this).toggleClass('.style-class');
  • $('.some-class').css({}); // misnomer, actually changes 'style' attribute

Contributions

If you see a problem or a typo, please fork, make the necessary changes, and create a pull request so we can review your changes and merge them into the master repo and branch.

Copyright

© DevMountain LLC, 2015. Unauthorized use and/or duplication of this material without express and written permission from DevMountain, LLC is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to DevMountain with appropriate and specific direction to the original content.

twitter-clone's People

Contributors

asbrettisay avatar brackcarmony avatar bsbeeks avatar cahlan avatar daanishnasir avatar jrobber avatar peterkrieg avatar smrtsmrf avatar tylermcginnis avatar

Watchers

 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.