GithubHelp home page GithubHelp logo

imclab / tweet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seaofclouds/tweet

0.0 1.0 0.0 200 KB

put twitter on your website with tweet, an unobtrusive javascript plugin for jquery

Home Page: http://tweet.seaofclouds.com

License: MIT License

tweet's Introduction

Tweet!

Put twitter on your website with tweet!, an unobtrusive javascript plugin for jquery.

Demos & examples

See tweet.seaofclouds.com, or the bundled index.html file.

Source

Download tarball

Features

  • small size and fast download time
  • will not slow down or pause your page while tweets are loading
  • display up to 100 tweets, as permitted by the twitter search api
  • display tweets from a twitter search, or from your own feed
  • optional verb tense matching, for human readable tweets
  • optionally display your avatar
  • optionally display tweets from multiple accounts!
  • automatic linking of @replies to users’ twitter page
  • automatic linking of URLs
  • automatic linking of #hashtags, to a twitter search of all your tags
  • converts <3 to a css styleable ♥ (we ♥ hearts)
  • customize the style with your own stylesheet or with other jquery plugins
  • customize the layout with a user-defined template function
  • supports RequireJS and other AMD-compatible javascript loaders
  • available on cdnjs

Usage

  1. Get JQuery. In these examples, we use Google's AJAX Libraries API.

  2. include jQuery and jquery.tweet.js files in your template's <head>.

     <script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
     <script language="javascript" src="/tweet/jquery.tweet.js" type="text/javascript"></script>
    
  3. Also in <head>, Initialize tweet! on page load with your Username and other options

     <script type='text/javascript'>
         jQuery(function($){
             $(".tweet").tweet({
                 join_text: "auto",
                 avatar_size: 32,
                 count: 3,
                 loading_text: "loading tweets..."
             });
         });
     </script>
    
  4. In <body>, include a placeholder for your tweets. They'll get loaded in via JSON. How fancy!

     <div class="tweet"></div>
    
  5. Style with our stylesheet in <head>, or modify as you like!

     <link href="jquery.tweet.css" media="all" rel="stylesheet" type="text/css"/>
    

Contribute

Bring your code slinging skills to Github and help us develop new features for tweet!

Github project page

git clone git://github.com/seaofclouds/tweet.git

Report bugs at http://github.com/seaofclouds/tweet/issues

Licensed under the MIT

License text


tweet's People

Contributors

feelepxyz avatar gyoshev avatar mose avatar navilan avatar purcell avatar seaofclouds avatar vinibaggio 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.