Code Monkey home page Code Monkey logo

jquery-latesttweet's Introduction

jQuery LatestTweet

Why oh why?

Of course there're a lot of plugins but I just want a simple clean plugin that just returns me the formated latest tweet of a user.

Example

Import the javascript

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="src/jquery.latestTweet.js"></script>

Engage the plugin

$('#element_for_tweet').latestTweet('manuelvanrijn');

Plugin defaults

The plugin has some default options you can override when executing the plugin:

$('#element_for_tweet').latestTweet('manuelvanrijn', {
	formatLink: false,
	formatHashes: false
});

You can also override the global default values if you want a different default behaviour. For instance, you can override the global default value for formatLink by defining:

$.fn.latestTweet.defaults.formatLink = false;

Default options

Here's a list with the available default options

{
    formatLinks: true,          // format url's to a clickable link
    formatMentions: true,       // format @username to a link to the users profile
    formatHashes: true,         // format #tag to a link to the twitter tag search
    callback: function() {}     // function that will be called after the latest tweet has been filled in.
}

githalytics.com alpha

jquery-latesttweet's People

Watchers

 avatar

jquery-latesttweet's Issues

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.