Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
jQuery Pluginization (see comment for slide order)
function longUrl( elem ) {
var href = elem.attr( 'href' ),
api = 'http://www.longurlplease.com/api/v1.1?callback=?';
// Fetch JSON data.
jQuery.getJSON( api, { q: href }, function(data){
if ( data[ href ] ) {
// Update the element's title attribute.
elem.attr( 'title', data[ href ] );
}
});
};
Something went wrong with that request. Please try again.